The scripts are based on python 2.7 using praw(The Python Reddit API Wrapper)
praw latest documentation: praw.readthedocs.io/en/latest/
- searching in the comments -> reddit_imgur_locator.py = locate imgur.com links
- searching in the post titles -> reddit_airdrop_locator.py = locate posts where the word "airdrop" is used(cryptocurrency giveaway)
-
git clone https://github.com/tai-euler/reddit_word_locator.git
-
cd reddit_word_locator/
-
example script to run :
python reddit_imgur_locator.py
-
add your own
client_id='your_id'
,client_secret="your_secret"
,password='your_pass'
andusername='your_username'
in the python file. (the data can be found here https://ssl.reddit.com/prefs/apps) -
add your own subreddit for example I add "naturepics" to the code:
subreddit = reddit.subreddit(“naturepics”)
-
you can change the category and limit, how many topics should the script scrape by changing this line in the code:
hot_category = subreddit.hot(limit=120)
optionaly you can change category(from "hot" to "new"):
new_category = subreddit.new(limit=30)
pip3 install praw