Skip to content

Commit

Permalink
Fix bad table query in BS
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniruKun authored May 29, 2022
1 parent 0e5e269 commit 3520878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitterscraper/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
def get_proxies():
response = requests.get(PROXY_URL)
soup = BeautifulSoup(response.text, 'lxml')
table = soup.find('table',id='proxylisttable')
table = soup.find('table',{'class': 'table table-striped table-bordered'})
list_tr = table.find_all('tr')
list_td = [elem.find_all('td') for elem in list_tr]
list_td = list(filter(None, list_td))
Expand Down

0 comments on commit 3520878

Please sign in to comment.