pushshift / api

Pushshift API
1.29k stars 107 forks source link

Adding In Ability To Search By Date Retrieved #67

Open WittierDinosaur opened 3 years ago

WittierDinosaur commented 3 years ago

Filtering on created_utc makes accurately capturing deltas more difficult, as you can't necessarily lock down time windows in the past, as there's no guarantees data won't be added in the future. In this pull request, I have implemented the ability to add 'retrieved_before' and 'retrieved_after' to the query string, which will work the 'retrieved_on' field the same way that 'before' and 'after' work on the created_utc field.

I have also removed a couple of semicolons from the code that ought not to be there, and ran the code through a linter.