0

the images I am trying to get are inside an and I want the High resolution images.

I have found this code here but it doesn't seem to work.

import requests

from bs4 import BeautifulSoup

from selenium import webdriver

from time import sleep

from cookie_accepter3 import load_and_accept_cookies

driver = webdriver.Safari()

def getdata(url):

r = requests.get(url) 

return r.text 

URL = 'https://www.duelingbook.com/deck?id=13690926

htmldata = getdata("https://www.duelingbook.com/deck?id=13690926")

soup = BeautifulSoup(htmldata, 'html.parser')

for item in soup.find_all('img'):

print(item['src'])

Any help , appreciate

2 Answers 2

1

Getting high res images really depends on the source. Does the source provide you with high res? Do they allow resolution parameters to be passed?

Unless you're using something like OpenCV or related tech, you may not be able to upscale the images dimensions into high res.

Sign up to request clarification or add additional context in comments.

2 Comments

What link should i wroge in URL? What link writer in HTML data ?
Can you try looking at their documentation?
1

I think your code seems fine really. It may be that the source doesn't provide you with high-res images

1 Comment

What link should i wroge in URL? What link writer in HTML data ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.