bulk-downloader-for-reddit/README.md

85 lines
4.8 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
## What it can do
- Can get posts from: frontpage, subreddits, multireddits, redditor's submissions, upvoted and saved posts; search results or just plain reddit links
- Sorts posts by hot, top, new and so on
2018-07-13 19:37:35 +08:00
- Downloads imgur albums, gfycat links, [self posts](#how-do-i-open-self-post-files) and any link to a direct image
- Skips the existing ones
- Puts post titles to file's name
- Puts every post to its subreddit's folder
- Saves a reusable copy of posts' details that are found so that they can be re-downloaded again
- Logs failed ones in a file to so that you can try to download them later
- Can run with double-clicking on Windows
2018-07-10 07:27:44 +08:00
2018-07-12 07:01:29 +08:00
## [Download the latest release](https://github.com/aliparlakci/bulk-downloader-for-reddit/releases/latest)
## How it works
2018-07-12 18:32:59 +08:00
- For **Windows** and **Linux** users, there are executable files to run easily without installing a third party program. But if you are a paranoid like me, you can **[compile it from source code](docs/COMPILE_FROM_SOURCE.md)**.
2018-07-13 19:34:20 +08:00
- In Windows, double click on bulk-downloader-for-reddit file
- In Linux, extract files to a folder and open terminal inside it. Type **`./bulk-downloader-for-reddit`**
2018-07-12 18:32:59 +08:00
- **MacOS** users have to **[compile it from source code](docs/COMPILE_FROM_SOURCE.md)**.
2018-07-13 19:34:20 +08:00
Script also accepts **command-line arguments**, get further information from **[`--help`](docs/COMMAND_LINE_ARGUMENTS.md)**
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
## FAQ
2018-07-13 19:37:35 +08:00
### How do I open 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.
2018-07-13 19:37:35 +08:00
However, there is a [great Chrome extension](https://chrome.google.com/webstore/detail/markdown-viewer/ckkdlimhmcjmikdlpkmbgfkaikojcbjk) for viewing Markdown files with its styling. Install it and open the files with [Chrome](https://www.google.com/intl/tr/chrome/).
However, they are basically text files. You can also view them with any text editor such as Notepad on Windows, gedit on Linux or Text Editor on MacOS
2018-07-10 07:27:44 +08:00
2018-07-18 14:17:36 +08:00
### How can I change my credentials?
- All of the user data is held in **config.json** file which is in a folder named "Bulk Downloader for Reddit" in your **Home** directory. You can edit
them, there.
2018-07-10 03:58:11 +08:00
## Changelog
2018-07-22 03:03:16 +08:00
### [21/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/4a8c2377f9fb4d60ed7eeb8d50aaf9a26492462a)
2018-07-22 02:54:23 +08:00
- Added exclude mode
2018-07-20 18:33:50 +08:00
### [20/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/commit/7548a010198fb693841ca03654d2c9bdf5742139)
2018-07-20 18:01:21 +08:00
- "0" input for no limit
2018-07-20 18:33:50 +08:00
- Fixed the bug that recognizes none image direct links as image links
2018-07-20 18:01:21 +08:00
2018-07-19 20:22:12 +08:00
### [19/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/41cbb58db34f500a8a5ecc3ac4375bf6c3b275bb)
2018-07-19 19:57:16 +08:00
- Added v.redd.it support
- Added custom exception descriptions to FAILED.json file
2018-07-19 20:22:12 +08:00
- Fixed the bug that prevents downloading some gfycat URLs
2018-07-13 19:13:39 +08:00
### [13/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/9f831e1b784a770c82252e909462871401a05c11)
- Change config.json file's path to home directory
2018-07-13 04:05:13 +08:00
### [12/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/50a77f6ba54c24f5647d5ea4e177400b71ff04a7)
2018-07-12 19:15:26 +08:00
- Added binaries for Windows and Linux
- Wait on KeyboardInterrupt
2018-07-13 04:05:13 +08:00
- Accept multiple subreddit input
2018-07-13 02:16:20 +08:00
- Fixed the bug that prevents choosing "[0] exit" with typing "exit"
2018-07-12 07:07:02 +08:00
### [11/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/a28a7776ab826dea2a8d93873a94cd46db3a339b)
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