kuzuryu71
Regular Member
- Sep 12, 2019
- 254
- 91
Hello guys! It's time to give back to the community.
Inspired from @Meerakat 's post about searching your niche subreddit.
So basically he used Google's search/indexing capability to search your keyword in Reddit's indexed page. This is a great idea, but how about if we search it directly to reddit via it's API?
The pros should be:
So basically this is a simple web page built on top of snoowrap, a wrapper of Reddit API in javascript. And since you can easily see the source code via "right click --> view page source", you can deploy it yourself and use your own API key to make the rate limit only yours, not shared with other users.
The Reddit search API is built on top of Lucene I think. Maybe a variant of Lucene like elasticsearch. So, it supports Lucene syntax for searching.
In example,
I search with this keyword: bitcoin
Then I can also search with this keyword: bitcoin +finance
Means, I want to search whether the post need to have finance stated in the post and maybe contains bitcoin
Or the opposite
You can open the lucene query documentation for other syntax.
That's it.
Have a nice day!
Inspired from @Meerakat 's post about searching your niche subreddit.
So basically he used Google's search/indexing capability to search your keyword in Reddit's indexed page. This is a great idea, but how about if we search it directly to reddit via it's API?
The pros should be:
- Not dependent on what Google algorithm is
- Results are directly from Reddit
- Rate limit (It's around 30 requests/minute per API key)
So basically this is a simple web page built on top of snoowrap, a wrapper of Reddit API in javascript. And since you can easily see the source code via "right click --> view page source", you can deploy it yourself and use your own API key to make the rate limit only yours, not shared with other users.
The Reddit search API is built on top of Lucene I think. Maybe a variant of Lucene like elasticsearch. So, it supports Lucene syntax for searching.
In example,
I search with this keyword: bitcoin
Then I can also search with this keyword: bitcoin +finance
Means, I want to search whether the post need to have finance stated in the post and maybe contains bitcoin
Or the opposite
You can open the lucene query documentation for other syntax.
That's it.
Have a nice day!