bulk-downloader-for-reddit/README.md

60 lines
3.1 KiB
Markdown
Raw Normal View History

2018-07-10 03:58:11 +08:00
# Bulk Downloader for Reddit
This program downloads imgur, gfycat and direct image and video links of saved posts from a reddit account. It is written in Python 3.
2018-07-12 04:23:55 +08:00
**PLEASE** post any issue you have with the script to [Issues](https://github.com/aliparlakci/bulk-downloader-for-reddit/issues) tab. Since I don't have any testers or contributers I need your feedback.
2018-07-10 03:58:11 +08:00
2018-07-12 06:16:11 +08:00
## What can it do?
2018-07-10 07:27:44 +08:00
### It...
- can get posts from: frontpage, subreddits, multireddits, redditor's submissions, upvoted and saved posts; search results or just plain reddit links
2018-07-10 19:03:40 +08:00
- sorts posts by hot, top, new and so on
2018-07-10 07:55:45 +08:00
- downloads imgur albums, gfycat links, [self posts](#i-cant-open-the-self-posts) and any link to a direct image
2018-07-10 07:27:44 +08:00
- skips the existing ones
- puts post titles to file's name
- puts every post to its subreddit's folder
2018-07-10 19:03:40 +08:00
- saves a reusable copy of posts' details that are found so that they can be re-downloaded again
2018-07-10 07:27:44 +08:00
- logs failed ones in a file to so that you can try to download them later
2018-07-10 07:38:28 +08:00
- can be run with double-clicking on Windows (but I don't recommend it)
2018-07-10 07:27:44 +08:00
2018-07-10 03:58:11 +08:00
## Requirements
2018-07-11 07:40:36 +08:00
- Python >3.6
2018-07-10 03:58:11 +08:00
You can install Python 3 here: [https://www.python.org/downloads/](https://www.python.org/downloads/)
You have to check "**Add Python 3 to PATH**" option when installing in order it to run correctly.
2018-07-11 07:40:36 +08:00
2018-07-10 07:00:55 +08:00
## Setting up the script
2018-07-10 03:58:11 +08:00
Because this is not a commercial app, you need to create an imgur developer app in order API to work.
### Creating an imgur app
* Go to https://api.imgur.com/oauth2/addclient
* Enter a name into the **Application Name** field.
* Pick **Anonymous usage without user authorization** as an **Authorization type**\*
* Enter your email into the Email field.
* Correct CHAPTCHA
* Click **submit** button
It should redirect to a page which shows your **imgur_client_id** and **imgur_client_secret**
2018-07-12 04:23:55 +08:00
\* Select **OAuth 2 authorization without a callback URL** first then select **Anonymous usage without user authorization** if it says *Authorization callback URL: required*
2018-07-10 03:58:11 +08:00
2018-07-12 06:39:58 +08:00
## Running the script
2018-07-10 03:58:11 +08:00
2018-07-12 06:39:58 +08:00
For **Windows** users, there is an *EXE* file to run easily. **Linux** and **MacOS** users have to run it from the *source code* through terminal.
To get further information about that and **command-line arguments**, see **[`python script.py --help`](docs/help_page.md)**
2018-07-10 03:58:11 +08:00
## FAQ
2018-07-10 18:33:26 +08:00
### I can't open the self post files.
2018-07-12 04:23:55 +08:00
- Self posts are held at reddit as styled with markdown. So, the script downloads them as they are in order not to lose their stylings.
However, there is a great Chrome extension [here](https://chrome.google.com/webstore/detail/markdown-viewer/ckkdlimhmcjmikdlpkmbgfkaikojcbjk) for viewing Markdown files with its styling. Install it and open the files with Chrome.
2018-07-10 07:27:44 +08:00
2018-07-10 03:58:11 +08:00
## Changelog
2018-07-12 06:43:44 +08:00
### [11/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/commit/fd507870e151689136423c52ca5ed93541f804cc)
2018-07-12 03:33:10 +08:00
- Improvements on UX and UI
- Added logging errors to CONSOLE_LOG.txt
- Using current directory if directory has not been given yet.
2018-07-12 04:23:55 +08:00
2018-07-10 08:13:39 +08:00
### [10/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/ffe3839aee6dc1a552d95154d817aefc2b66af81)
2018-07-10 06:58:42 +08:00
- Added support for *self* post
2018-07-10 19:03:40 +08:00
- Now getting posts is quicker