GithubHelp home page GithubHelp logo

Comments (13)

jankozuchowski avatar jankozuchowski commented on June 10, 2024 11

I fixed it with changing 48th line to:
table = soup.find('table',{'class': 'table table-striped table-bordered'})

from twitterscraper.

jpzhangvincent avatar jpzhangvincent commented on June 10, 2024 3

It's a significant issue. Is the package still actively maintained?

from twitterscraper.

KamilsobC avatar KamilsobC commented on June 10, 2024 1

#367 (comment)

from twitterscraper.

dairelad avatar dairelad commented on June 10, 2024 1

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.

MonikaBarget avatar MonikaBarget commented on June 10, 2024

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.

hinceme avatar hinceme commented on June 10, 2024

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.

rapha18th avatar rapha18th commented on June 10, 2024

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.

mahajnay avatar mahajnay commented on June 10, 2024

same for me. can anyone suggest a fix?

from twitterscraper.

Thomas-Richardson avatar Thomas-Richardson commented on June 10, 2024

Same for me, I get this error when i just try to import the twitterscraper module into python

from twitterscraper.

joerod avatar joerod commented on June 10, 2024

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.

tugceozturkk avatar tugceozturkk commented on June 10, 2024

!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('

')[1]
IndexError: list index out of range
böyle bir hata verdi

from twitterscraper.

bloodconfetti avatar bloodconfetti commented on June 10, 2024

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.

ArchivingToolsForWBM avatar ArchivingToolsForWBM commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.