twitterscraper icon indicating copy to clipboard operation
twitterscraper copied to clipboard

Getting error with main code inside beatifulSoup

Open tienquyet28 opened this issue 2 years ago • 5 comments

/usr/local/lib/python3.7/dist-packages/twitterscraper/query.py in get_proxies() 47 soup = BeautifulSoup(response.text, 'lxml') 48 table = soup.find('table',id='proxylisttable') ---> 49 list_tr = table.find_all('tr') 50 list_td = [elem.find_all('td') for elem in list_tr] 51 list_td = list(filter(None, list_td))

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

When I run CLI or in python It get error from BeautifulSoup lib, please help

tienquyet28 avatar Aug 30 '22 06:08 tienquyet28

Has anyone found a solve for this?

tsp2123 avatar Nov 23 '22 19:11 tsp2123

hey I know how to solve this issue I would Like to work on this

Prit2341 avatar Jan 17 '23 11:01 Prit2341

D:\twitterscraper\twitterscraper>python main.py

D:\twitterscraper\twitterscraper>

I am getting this output is this right or wrong

Prit2341 avatar Jan 17 '23 11:01 Prit2341

yes just put soup.find('table') as the table id has been dropped from the page

jkahil avatar Feb 22 '23 10:02 jkahil

got hte same issue. solved this with removing ,id='proxylisttable' from table = soup.find('table',id='proxylisttable') in query.py > get_proxies()

CryptoRahino avatar May 28 '23 12:05 CryptoRahino