question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to filter by datetime downloaded tweets?

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
numerotecacommented, Aug 29, 2021

@numeroteca since it seems like you have some facility with R is there a reason why you don’t read in the JSON and filter it yourself before sending it off to twarc2 network ?

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.

1reaction
igorbrigadircommented, Jul 15, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found