vendredi 7 décembre 2018

AttributeError: 'NoneType' object has no attribute 'a'

Im trying to get the title content("GIGABYTE") using python in the picture below I used:

containers= page_soup.findAll("div",{"class":"item-container"}) brand = containers[0].div.div.a.img["title"]

but I get this error according to this line: 'NoneType' object has no attribute 'a' this picture is an html content of a site i try to use web scraping method




Aucun commentaire:

Enregistrer un commentaire