Comments (13)
I fixed it with changing 48th line to:
table = soup.find('table',{'class': 'table table-striped table-bordered'})
from twitterscraper.
It's a significant issue. Is the package still actively maintained?
from twitterscraper.
from twitterscraper.
I fixed it with changing 48th line to: table = soup.find('table',{'class': 'table table-striped table-bordered'})
Hi there, I tried this and I am still getting the same error as above. Are there any other working solutions for this issue?
Hi, it's the same for me, too did you find a fix?
Also tried this fix but still getting the same error
from twitterscraper.
I have the exact same problem.
I did not look at the Twitter source code yet, but it may be that they have constructed their tables differently now.
The error clearly occurs when BeautifulSoup
is trying to read a HTML table:
C:\ProgramData\Anaconda3\lib\site-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'
from twitterscraper.
I fixed it with changing 48th line to: table = soup.find('table',{'class': 'table table-striped table-bordered'})
Hi there, I tried this and I am still getting the same error as above. Are there any other working solutions for this issue?
from twitterscraper.
I fixed it with changing 48th line to: table = soup.find('table',{'class': 'table table-striped table-bordered'})
Hi there, I tried this and I am still getting the same error as above. Are there any other working solutions for this issue?
Hi, it's the same for me, too did you find a fix?
from twitterscraper.
same for me. can anyone suggest a fix?
from twitterscraper.
Same for me, I get this error when i just try to import the twitterscraper module into python
from twitterscraper.
I fixed it with changing 48th line to: table = soup.find('table',{'class': 'table table-striped table-bordered'})
Maybe submit an MR to fix this?
from twitterscraper.
!pip install twitterscraper==0.2.7 bunu yükledikten sonra bende find_all hatası düzeldi ama bu kezde
Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11
Traceback (most recent call last):
File "C:\Users\Samsung\anaconda3\lib\site-packages\fake_useragent\utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "C:\Users\Samsung\anaconda3\lib\site-packages\fake_useragent\utils.py", line 99, in get_browsers
html = html.split('
IndexError: list index out of range
böyle bir hata verdi
from twitterscraper.
twitterscraper CL0WN_LVSER --user -o tweets_username.json
Traceback (most recent call last):
File "C:\Users\redacted\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\redacted\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\redacted\AppData\Local\Programs\Python\Python310\Scripts\twitterscraper.exe_main.py", line 4, in
File "C:\Users\redacted\AppData\Local\Programs\Python\Python310\lib\site-packages\twitterscraper_init.py", line 13, in
from twitterscraper.query import query_tweets
File "C:\Users\redacted\AppData\Local\Programs\Python\Python310\lib\site-packages\twitterscraper\query.py", line 76, in
proxies = get_proxies()
File "C:\Users\redacted\AppData\Local\Programs\Python\Python310\lib\site-packages\twitterscraper\query.py", line 49, in get_proxies
list_tr = table.find_all('tr')
AttributeError: 'NoneType' object has no attribute 'find_all'
idk if this helps anyone/anything
from twitterscraper.
I'm getting a similar problem, in 2022, using Python 3.7.3, on windows 10:
C:\Users\RedBro\AppData\Local\Programs\Python\Python37-32\Scripts>twitterscraper -help
Traceback (most recent call last):
File "C:\Users\RedBro\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\RedBro\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\RedBro\AppData\Local\Programs\Python\Python37-32\Scripts\twitterscraper.exe\__main__.py", line 4, in <module>
File "C:\Users\RedBro\AppData\Local\Programs\Python\Python37-32\lib\site-packages\twitterscraper\__init__.py", line 13, in <module>
from twitterscraper.query import query_tweets
File "C:\Users\RedBro\AppData\Local\Programs\Python\Python37-32\lib\site-packages\twitterscraper\query.py", line 76, in <module>
proxies = get_proxies()
File "C:\Users\RedBro\AppData\Local\Programs\Python\Python37-32\lib\site-packages\twitterscraper\query.py", line 49, in get_proxies
list_tr = table.find_all('tr')
AttributeError: 'NoneType' object has no attribute 'find_all'
C:\Users\RedBro\AppData\Local\Programs\Python\Python37-32\Scripts>
from twitterscraper.
Related Issues (20)
- Why Does Not Work? HOT 2
- OSError: [WinError 87] The parameter is incorrect HOT 1
- Scrapping using a limit
- Feature: Twitter Followings (and maybe Followers) HOT 1
- Documentation: Addressing shadow-bans
- from twitterscraper import query_tweets HOT 4
- No ouput from "query_tweets_from_user" HOT 7
- Retrying... no success.
- Problem parsing proxy list HOT 3
- How to get a all followers list of one twitter account ?
- twitter scrapper error HOT 7
- Is this project functional? HOT 1
- encoding issue in cp1252.py HOT 1
- query_tweet function throwing errors
- Not working at the first step of installation HOT 1
- Getting error with main code inside beatifulSoup HOT 5
- Getting error when getting a help and scrape data HOT 2
- return with "Got 0 tweets (0 new)" HOT 1
- AttributeError: 'NoneType' object has no attribute 'find_all' HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitterscraper.