Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

[Question] Why is Twint not extracting tweets? #1370

Open
Barbz2 opened this issue Mar 15, 2022 · 13 comments
Open

[Question] Why is Twint not extracting tweets? #1370

Barbz2 opened this issue Mar 15, 2022 · 13 comments

Comments

@Barbz2
Copy link

Barbz2 commented Mar 15, 2022

Hi,

I am trying to extract tweets in England, under the query of 'hate speech'.

I wrote the following code:


import twint

c = twint.Config()

c.Username = "noneprivacy"
c.Custom["tweet"] = ["id"]
c.Custom["user"] = ["bio"]
c.Limit = 10
c.Geocode = 'England'
c.Store_csv = True
c.Output = "none"

twint.run.Search(c)


The output was:
Results:
#[!] No more data! Scraping will stop now.
#found 0 deleted tweets in this search.

I tried using the previous code as an experiment before searching my own query.
I also added a date limit but it makes no difference.
It was working well yesterday but for whatever reason, it has stopped.
I can't seem to get why Twint is not working right now. Any advice?

Python - 3.8.5
Windows 10
Notepad ++

Thank you so much! :)

@minamotorin
Copy link

Same as #1349

@Barbz2
Copy link
Author

Barbz2 commented Mar 15, 2022

I have tried the solution but it is not working. I even tested the examples the comments provided under #1349 but it is not working for me.

@vgewilliam
Copy link

Maybe you should update "pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint"?

@minamotorin
Copy link

@Barbz2

#1349 means you have to use twint.run.Profile instead of twint.run.Search.
Have you tried this?

@Barbz2
Copy link
Author

Barbz2 commented Mar 16, 2022 via email

@orestisc
Copy link

orestisc commented Mar 16, 2022

@Barbz2

#1349 means you have to use twint.run.Profile instead of twint.run.Search. Have you tried this?

Experiencing the same problem, tried everything. twint.run.Profile returns error: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

EDIT : twint.run.Search works fully sometimes.
Other times getting half data
Most of the time showing
#[!] No more data! Scraping will stop now.
#found 0 deleted tweets in this search.

@woluxwolu
Copy link

Maybe you can check here #1363
OR
Just Reinstall your twint using this fork:
!pip install git+https://github.com/woluxwolu/twint.git

@batmanscode
Copy link

@woluxwolu's fork works for me. I was able to scrape tweets going back years

@YooTimmy
Copy link

Hello,

I am having similar issues (seeing the following returns while running the queries)
#[!] No more data! Scraping will stop now.
#found 0 deleted tweets in this search.

Have tried the solution proposed by woluxwolu to reinstall my twint, but problem still exists. Any suggestions would be appreciated.

@vgewilliam
Copy link

Hello,

I am having similar issues (seeing the following returns while running the queries) #[!] No more data! Scraping will stop now. #found 0 deleted tweets in this search.

Have tried the solution proposed by woluxwolu to reinstall my twint, but problem still exists. Any suggestions would be appreciated.

Hello @YooTimmy , maybe you can try uninstall the twint first and then reinstall:
!pip install git+https://github.com/woluxwolu/twint.git.

@YooTimmy
Copy link

Hello @YooTimmy , maybe you can try uninstall the twint first and then reinstall:

Thanks for getting back! I have tried uninstall (pip uninstall twint is the code I used, it rans successfully) and then install using your command again. But still, when extracting the tweets it will stop in the middle or only return a few hundred records back.

@ghost
Copy link

ghost commented Apr 16, 2022

The fork works. You are lucky to find anything that works on Windows lately.

@pbabvey
Copy link

pbabvey commented May 3, 2022

Thanks, @woluxwolu for the fix. It works to download tweets. I am still getting errors while using twint to collect the following/follower lists. Is there a solution around that or a hint on how can we fix it?

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

No branches or pull requests

8 participants