Forums

AttributeError: Nonetype

Hello!

I'm receiving this traceback..

  File "/home/n1ck/mysite/webscraper.py", line 54, in scrape
  content = find_gpu.find_all(text=re.compile(search_item))
  AttributeError: 'NoneType' object has no attribute 'find_all'

The site I'm searching is Newegg.com, from my research it seems most people have had this issue because of the whitelist. Just wondering if I'm having the same issue. (I'm grabbing user input from a form and scraping newegg for results). I have also upgraded my account...

Very well could be an issue on my end, as I'm learning, but it does work on the flask test server.

Thanks for taking the time to look at this.

Your variable find_gpu is set to None -- that's what the error is saying. What code do you have to set that variable?