jeudi 4 juillet 2019

how to assign image as variable taken from web scraping?

Using the link of a product from Amazon and its id, How we can assign an image as a variable in python?, As we do get_text() and assign to a variable with text.

To get the title of the product we simply use:- title = soup.find(id="productTitle").get_text()

But for the image what we can do?




Aucun commentaire:

Enregistrer un commentaire