Skip to content

Return all threads in a particular subreddit that contain any of the words provided by the user.

License

Notifications You must be signed in to change notification settings

jsardo/subsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

subsearch

Return all threads in a particular subreddit that contain any of the words provided by the user.

usage

python sub_search.py sub=<subreddit name> words=[<list of words>] <search limit>

example

 python sub_search.py sub=programming words=[python, api, flask, javascript] 25
 1: http://redd.it/2dbzpl (found "python" in title)
 2: http://redd.it/2d8zqf (found "python" in title)
 3: http://redd.it/2ddhir (found "javascript" in title)

caveat

with the recent addition of comment parsing the script now takes a very long time to execute. keep this in mind when searching a large subreddit with large comment threads.

coming soon

  • choice to ignore case or not
  • extend search to multiple subreddits
  • search for a string containing multiple words
  • choice to search the submission's title, body, and comments or a combination of the three.

About

Return all threads in a particular subreddit that contain any of the words provided by the user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages