How to filter by datetime downloaded tweets?
See original GitHub issueI’ve split in consecutive dates periods my searches with Twarc. I am able to join the files easily with cat file1.jsonl file2.jsonl
.
Now what I need is to specifically select certain tweets from the downloaded tweets: from one date and time to another. Is there an easy straight forward way to do it?
Why? I am comparing Twarc downloaded dataset with previously donwloaded data sets (with streaming API) and I need to have the same period.
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
tweepy get tweets between two dates - python
The only workaround for that is you know the tweet_id which you can download it regardless of time-limit set by Twitter API. –...
Read more >How To Easily Search For Tweets By Date On Twitter
Search for tweets by a specific date by scrolling all the way down to the bottom of the pop-over window. You'll see fields,...
Read more >Standard search API | Docs | Twitter Developer Platform
Returns a collection of relevant Tweets matching a specified query. ... see the Standard search operators page for a list of available filter...
Read more >Advanced usage: The TwitterSearchOrder class - Read the Docs
You can do so by setting the filter via TwitterSearchOrder. set_question_filter() .
Read more >How To Search For Tweets By Date
To search for tweets by date, use the following terms in the search feature: from:username since:yyyy-mm-dd until:yyyy-mm-dd.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Certainly not, I could filter it with R. I haven’t tried, but I guess it should work. I’ll try an report back. I was just trying to make as much as possible with twarc before entering the analysis with R.
I wonder if we can do both - https://github.com/DocNow/twarc/issues/496#issuecomment-867935406 i had a similar idea for splitting the output. Maybe instead of a plugin it should be in core twarc? Since it won’t require any extra dependencies and will be useful to have.