-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api call seems to return nothing #49
Comments
I am seeing the same thing. Nothing returned. |
Same here, nothing is being returned. |
Same here, returning nothing despite the parameters being used |
Same here;
Results:
|
Just a quick temp fix: I've added some changes to the code (see it here), using it two new parameters exist for calling Pushshift: Now it works with recent data only (older data cannot be queried even using Pushshift directly either yet). Code example (with
Results:
|
Thanks for showing those changes. For some reason, implementing those makes PMAW very slow for responses. What used to be done in ~ 30 seconds, after these changes is taking 5+ minutes.
|
> # Pushsift api directily
> api_query = 'https://api.pushshift.io/reddit/submission/search/?q=' + 'biden' \
> + '&after=' + str(start_epoch) \
> + '&before=' + str(end_epoch) \
> + '&subreddit=' + 'politics' \
> + '&limit=' + str(100)
>
> Just a heads up, after | string (After) Search after this epoch time (inclusive) -- deprecated (use since)
before | string (Before) Search before this epoch time (exclusive) -- deprecated (use until) |
Wow, no one is going to use the push shift API after those go away lol |
Before/after have changed names to until/since. Some of the param nmes fr sorting have changed also. I've addressed the before/after => since/until change, as well as the sort/sort_type, and some other changes in my PR for PMAW, because at the moment it's giving 0 results! |
this will be fixed in |
There's no working alternative version in the meantime? |
I also encountered this issue. Using "api.pushshift.io/reddit/submission/search/" directly is useful but it seems only work for very limited period of time (i.e., one month or so). If I want to retrieve something earlier than a month, say, something in 12 months ago, calling this link (see below) in browser will only generate blank list: Specific return: |
Not right now. I'm hesitant to release a version that I havent fully tested, however, if everything goes well I will be able to release today 🙏🏾 |
theres been some parameter changes: looking at the COLO switchover bug thread, it looks like some other people have had the 1 month of data issue |
Yes, they've not loaded in the old historical data yet. I think it's due soon, but I've not been following too closely last couple of days. I'd be happy to revisit my changes once more testing is possible. |
closing this as the COLO switch over fixes have been merged + released in version 3.0.0! |
I am still getting the same issue in version 3.0.0 with this code:
The print call returns 0. Edit: Scratch that, it's a completely different problem. The API is locked for unregistered users. |
Hi, I copied the code below from the example page, it used to work but have stopped working recently, returning an empty list.
returns
[]
search_submissions also returns nothing....
Thank you so much.
The text was updated successfully, but these errors were encountered: