Typeerror: 'nonetype' Object Is Not Callable, Beautifulsoup
I'm running into a strange error. I'm trying to do some basic parsing. Essentially, I'm gathering data in 'x' format, and want to return everything in a format that I can use. My i
Solution 1:
You don't need to parse the divs once again. Try this:
for div in soup.find_all('div', 'res'):
a = div.find('a', 'yschttl spt')
if a:
print a.text
print
results.append(a)
Post a Comment for "Typeerror: 'nonetype' Object Is Not Callable, Beautifulsoup"