bisguzar / twitter-scraper

Scrape the Twitter Frontend API without authentication.
MIT License
3.88k stars 601 forks source link

Doesn't scrap anything. #189

Open AleksandrovichK opened 3 years ago

AleksandrovichK commented 3 years ago

Hey guys! Is this thing still working? I'm asking cuz I was unable to reproduce any example of yours:

from twitter_scraper import Profile
profile = Profile('elonmusk')

Returns UnboundLocalError: local variable 'html' referenced before assignment

And


from twitter_scraper import get_trends
get_trends()

Returns JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Both of them seem like some inner bugs so I'm wondering maybe I do something wrong?


My platform: MacOS Big Sur A version of lib: 0.4.4 Tried to install from pip / Github: none works

andret6 commented 3 years ago

Getting the same error.

Platform: windows 10 pro Python: 3.79 using pip installed version after downloading github version

ghost commented 3 years ago

definitely a garbage module. Not working at all.

bisguzar commented 3 years ago

What kind of savage speech is this @ThePlugJumbo ? This is how dependent softwares work. If something changed on one of dependencies the software will be affected of this. You can create a PR to fix this problem, also its how open source works. I'm not one of your employees, so I don't have to do it for you.

PS: I'll work on this issue, but I didnt scheduled yet. As I said on previous issues, Twitter changed something and twitter-scraper not working for now.

AleksandrovichK commented 3 years ago

Oh that's a pity to hear 😔 Anyway, thanks for quick response @bisguzar

If it won't be difficult for you I would highly appreciate if you pinged this issue when you done with fixes :)

Thanks again. It's a great job anyway, don't listen to anyone who says it's a garbage.

bisguzar commented 3 years ago

I'm working hard on my job nowadays, so I'm staying away from computer in my freetimes instead of developing open source. If I can create a space in my calendar I'll search the issue. Ofcourse I can ping the issue. Thanks for your interest.

kargaroc commented 3 years ago

Is there any alternative to this?

weber-stephen commented 2 years ago

I was able to use Twint(https://github.com/twintproject/twint), but you have to install using

pip install git+https://github.com/twintproject/twint.git#egg=twint
salvadornava01 commented 2 years ago

Hey guys! Is this thing still working? I'm asking cuz I was unable to reproduce any example of yours:

from twitter_scraper import Profile
profile = Profile('elonmusk')

Returns UnboundLocalError: local variable 'html' referenced before assignment

And


from twitter_scraper import get_trends
get_trends()

Returns JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Both of them seem like some inner bugs so I'm wondering maybe I do something wrong?

My platform: MacOS Big Sur A version of lib: 0.4.4 Tried to install from pip / Github: none works

I'm getting the same error. :(