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

[QUESTION] Deleted tweets, suspended accounts - can twint retrieve them? #1382

Open
3 tasks done
olivergarretson opened this issue Mar 26, 2022 · 0 comments
Open
3 tasks done

Comments

@olivergarretson
Copy link

olivergarretson commented Mar 26, 2022

  • Python version is 3.6;
  • Updated Twint with pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint;
  • I have searched the issues and there are no duplicates of this issue/question/request.

I'm not sure if twint can retrieve tweets from suspended accounts or otherwise deleted tweets. I suppose I should have made sure of this before figuring out how to use it! But anyways, does twint have this capability? Did it at one time? I'm fairly certain I read that it could.

Here's the command I ran:

import twint
#config
c = twint.Config()
c.Since = '2020-07-01'
c.Until = '2020-07-31'
c.Search = "from:@prayingmedic"
c.Store_object = True
c.Limit = 1000
c.Store_csv = True
c.Output = ("C:\TwintVirEnv\twintprayingmedic.csv")
c.Debug = True
twint.run.Search(c)

pasting this command resulted in:

import twint
#config
... c = twint.Config()
c.Since = '2020-07-01'
c.Until = '2020-07-31'
c.Search = "from:@prayingmedic"
c.Store_object = True
c.Limit = 1000
c.Store_csv = True
c.Output = ("C:\TwintVirEnv\twintprayingmedic.csv")
c.Debug = True
twint.run.Search(c)
[!] No more data! Scraping will stop now.
found 0 deleted tweets in this search.

I did test this out with a user I know isn't banned, and it worked. I'm working on a study of QAnon (during July 2020) and am trying to get data on a set of users that was banned/suspended sometime before I exported my dataset from the service I was using (which I can now see why capturing tweets from the stream is preferred).

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

1 participant