Skip to content

A program to fetch some comments/pictures from reddit

Notifications You must be signed in to change notification settings

nobodyme/reddit-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit-fetch

fetch-comments

A simple program to fetch the top level comments of a reddit post

Useful when you have threads like,

  • What are some of best resources that helped you with python?
  • What's your favorite album?

This then gives the list of just the names of everything that you can save.

Run

  • Clone the repository: git clone https://github.com/nobodyme/reddit-fetch.git or download
  • cd into the directory: cd reddit-fetch
  • pip3 install -r requirements.txt
  • Run the script with: python3 fetch_comments.py -l *your-post-link* -loc *directory path(optional, defaults to current one)*
    eg: python3 fetch_comments.py -l https://www.reddit.com/r/AskReddit/comments/75goki/whats_a_movie_to_watch_when_you_want_a_good_cry/
  • Check for help with python3 fetch_comments.py -h

grab-pictures

A python program to fetch the pictures of a given subreddit, wrote it when I was looking for some wallpapers to download. It grabs the pictures and puts them in a folder under the name of the supplied subreddit. You can find the article which explains the process to beginners.

Run

  • Clone the repository: git clone https://github.com/nobodyme/reddit-fetch.git or download
  • cd into the directory: cd reddit-fetch
  • pip3 install -r requirements.txt
  • Run the script with: python3 grab_pictures.py -s *name-of-the-subreddits* -n *number-of-photos(optional, defaults to 10)* -t *top posts of [day, week, month, year, all](optional)* -loc *directory-path(optional, defauts to current one)* -f *texts-to-use-to-filter-image-title(optional)*
    eg: python3 grab_pictures.py -s itookapicture CozyPlaces -n 100 -t all -f digital 3d
  • Check for help with python3 grab_pictures.py -h

Releases

No releases published

Packages

No packages published

Languages