Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error with main code inside beatifulSoup #372

Open
tienquyet28 opened this issue Aug 30, 2022 · 5 comments
Open

Getting error with main code inside beatifulSoup #372

tienquyet28 opened this issue Aug 30, 2022 · 5 comments

Comments

@tienquyet28
Copy link

/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

@tsp2123
Copy link

tsp2123 commented Nov 23, 2022

Has anyone found a solve for this?

@Prit2341
Copy link

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

@Prit2341
Copy link

D:\twitterscraper\twitterscraper>python main.py

D:\twitterscraper\twitterscraper>

I am getting this output is this right or wrong

@jkahil
Copy link

jkahil commented Feb 22, 2023

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

@CryptoRahino
Copy link

CryptoRahino commented May 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants