samedi 20 juillet 2019

How to scrape image url off of html?

I'm having trouble getting the url of an image on a website and I was wondering if I could get some help.

I want to get the image url of the card on the website, but using xpath only gives me the image url of the website logo.

scrapy shell https://db.ygoprodeck.com/card/?search=7%20Colored%20Fish

response.xpath('//img')
Out[2]: [<Selector xpath='//img' data='<img src="https://db.ygoprodeck.com/sear'>]

There should be another img link to the card picture but it is not showing up




Aucun commentaire:

Enregistrer un commentaire