Comments (5)
Hi @Hastte, can you try the following: api.search_submissions(subreddit="science", limit=None, score=">1000")
Let me know if this works
from pmaw.
Yes that's kinda work buuut, i get less result than usual using pushshift api directly
Edit: when i put the limit to 20k for exemple, i got 20 results and if i put the limit to 10k i got 200 result BUT with 40 above 20k
from pmaw.
Can you share your queries?
I tested the score parameter and got the results I expected, using Pushshift directly we can see 16 results exist (https://api.pushshift.io/reddit/search/submission/?q=dodo%20bird&metadata=true&score=%3E1000).
"execution_time_milliseconds": 98.48,
"index": "rs",
"metadata": "true",
"q": "dodo bird",
"ranges": [],
"results_returned": 16,
"score": [
">1000"
],
"shards": {
"failed": 0,
"skipped": 0,
"successful": 24,
"total": 24
},
"size": 25,
"sort": "desc",
"sort_type": "created_utc",
"timed_out": false,
"total_results": 16
Using the same query, re-written in pmaw, we get 16 results:
posts = api.search_submissions(q="dodo bird", score=">1000") # reports 16 available results
len(posts) # 16
from pmaw.
And now it's the opposite
from pmaw.
Your score parameter for Pushshift is malformed, "score>20000" should be "score=>20000".
This is the correct query: https://api.pushshift.io/reddit/search/submission/?subreddit=science&metadata=true&score=%3E20000
It has the same number of results as pmaw
so I will be closing this issue.
from pmaw.
Related Issues (20)
- How to skip a request if taking too long? HOT 5
- ChunkedEncodingError while scraping subreddit submissions HOT 10
- Unable to fetch comments by ID HOT 3
- Fetching comments never completes HOT 2
- Issues with search_comments and search_submission_comment_ids HOT 3
- Cannot pass https_proxy parameter to PushShift function
- Confusion about multithreading HOT 1
- signal only works in main thread HOT 4
- api call seems to return nothing HOT 17
- Returned 0 result HOT 19
- Changed format in parent_id HOT 2
- Comment and submission search snags
- Issue with limit? HOT 7
- always 100 unique ids despite the size of returned comments HOT 2
- Subreddit restriction is not an exact name match and includes subreddits with a superset of that name HOT 3
- Adding flair search
- Sort = "created_utc" didnt sort results properly HOT 1
- Can not get post_ids
- Am I able to ask what is the maximum number of comments can I get from a post
- PullPush - PushShift replacement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmaw.