Python Forum
Why doesn't this image downloader work?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why doesn't this image downloader work?
#1
This is my code for now:

import requests
from bs4 import BeautifulSoup

def getdata(url):
    r = requests.get(url)
    return r.text

htmldata = getdata("https://www.piggyback.com/online-guide/final-fantasy-x/de/")
soup = BeautifulSoup(htmldata, 'html.parser')
for item in soup.find_all('img', class_="ImgBitmap__image___29vcf"):
    print(item['src'])
Reply
#2
What you see in the link is a PDF.

But it is "protected" by Adobe:

Quote:{
defaultViewMode: "FIT_PAGE",
enableLinearization: true,
showAnnotationTools: false,
showLeftHandPanel: false,
showPageControls: false,
showDownloadPDF: false,
showPrintPDF: false});
}

They don't want you to copy anything or download the PDF.

If you could get the PDF, maybe from another webpage, then you could extract the images from the PDF.
Reply
#3
I found the pdf here.Well, I think it is the right one. I never play computer games.

From the pdf it is possible to get the images using the Python module fitz
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  m3u8 using build-in browser downloader? kucingkembar 3 3,052 Mar-29-2024, 01:47 AM
Last Post: kucingkembar
  Can not make this image downloader work Blue Dog 6 5,935 Jun-23-2020, 08:55 PM
Last Post: snippsat
  RFC downloader not working sidsr003 2 3,537 Dec-19-2018, 09:31 PM
Last Post: snippsat
  Super simple import doesn't work. Please help! Mustey 9 6,536 Jul-27-2018, 09:52 AM
Last Post: Mustey
  Multiple File Downloader Josh_Python890 1 3,366 Sep-16-2017, 11:19 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020