Package: grab-reddit
grab - a Reddit download botThis is a simple Python script to download submissions containing images from any specified subreddit.All images are placed in the ~/Downloads/grab-bot/[subreddit]/[date] by default. The download path however can be changed through the GUI or config file."grab.ini" is the configuration file used by the program. It will be generated with default values in case it is not present when the program is run. This file will be created in your home directory."downloaded.txt" lists all previously downloaded images from their subreddit. This was done to avoid downloading images multiple times in an effort to save bandwidth and make subsequent executions of the program faster.This program supports mainly Linux. Windows support is still in testing.Table of ContentsTODOHow to useProblemsInstallationArchDebianFedoraWindowsKnown BugsCronTODOGUI for selecting subredditsChange download location through GUIChange the download limitChange the categoryCLI option for launching the gui. Done through grab-reddit-gui.Make the GUI look betterCreate CLI options for newgrab.py to create config files in the terminalAutomatically schedule program execution (Can be done manually with cron)How to useFollow theinstallation instructions.To add subreddits open the gui, click on the "+" Button and type in the subreddit you want to add.To remove a subreddit, select one from the list and click on the "-" in the top right. Click yes in the following dialog.Clicking ">" will expand the window to change the category, limit and download path. Clicking "Run" in the GUI will execute grab.py.The theme can be changed by clicking on "light" or "dark". The dark theme is still work in progress.To run the program in the terminal usegrab-download <args>.If you want the gui version, rungrab-reddit-gui.Help for arguments taken bygrab-downloadcan be found by executinggrab-download -h.Setting up cron for repeated executions iscovered below.ProblemsThis program relies on a stable internet connection when adding new subreddits, as each subreddit is checked for whether it can be reached.If your connection is unstable or very slow this can lead to hanging in the GUI.InstallationTo install all requirements follow the instructions for your distribution shown below.ArchOpen a terminal and execute the following commands.sudo pacman -S python-pipsudo pip install grab-redditIf you want to install the program to your local user, make sure to add your .local/bin directory to your PATH.pip install --user grab-redditDebianOpen a terminal and execute the following commands.sudo apt-get install python3-pip python3-tkpip3 install grab-redditFedoraOpen a terminal and execute the following commands.sudo dnf install python3 python3-wheel python3-tkinterpip install --user grab-redditWindowsProgram still undergoing testingInstall python from thepython homepate.I suggest you to check "Add to my PATH".After a reboot open a terminal and execute the following command.pip install grab-redditTo use the CLI rungrab-reddit <args>. For the gui version usegrab-reddit-gui.Known BugsCronThis program comes with its own little execution scheduler included. It can be called withgrab-reddit-schedin the terminal.To execute this program it is best to specify the full path to the binary executableOn Linux you should be able to find the path withwhich grab-redditExample setup for hourly execution0 * * * * /home/marc/.local/bin/grab-reddit