mirror of
https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
synced 2026-01-09 18:55:36 +00:00
Compare commits
9 Commits
moreUseful
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6194c57d9 | ||
|
|
cd87a4a120 | ||
|
|
08cddf4c83 | ||
|
|
88fa9e742d | ||
|
|
1c17f174a8 | ||
|
|
9b36336ac3 | ||
|
|
35e551f20c | ||
|
|
0f2bda9c34 | ||
|
|
8ab694bcc1 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ MANIFEST
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
src/__pycache__/
|
src/__pycache__/
|
||||||
config.json
|
config.json
|
||||||
|
env/
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
Downloads media from reddit posts. Made by [u/aliparlakci](https://reddit.com/u/aliparlakci)
|
Downloads media from reddit posts. Made by [u/aliparlakci](https://reddit.com/u/aliparlakci)
|
||||||
|
|
||||||
|
## [Download the latest release here](https://github.com/aliparlakci/bulk-downloader-for-reddit/releases/latest)
|
||||||
|
|
||||||
## What it can do
|
## 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
|
- Can get posts from: frontpage, subreddits, multireddits, redditor's submissions, upvoted and saved posts; search results or just plain reddit links
|
||||||
@@ -19,7 +21,7 @@ You can use it either as a `bulk-downloader-for-reddit.exe` executable file for
|
|||||||
|
|
||||||
### Executables
|
### Executables
|
||||||
|
|
||||||
For Windows and Linux, [download the latest release, here](https://github.com/aliparlakci/bulk-downloader-for-reddit/releases/latest).
|
For Windows and Linux, [download the latest executables, here](https://github.com/aliparlakci/bulk-downloader-for-reddit/releases/latest).
|
||||||
|
|
||||||
### Python script
|
### Python script
|
||||||
|
|
||||||
@@ -45,7 +47,7 @@ You can run it it an interactive mode, or using [command-line arguments](docs/CO
|
|||||||
|
|
||||||
To run the interactive mode, simply use `python ./script.py` or double click on `bulk-downloader-for-reddit.exe` without any extra commands.
|
To run the interactive mode, simply use `python ./script.py` or double click on `bulk-downloader-for-reddit.exe` without any extra commands.
|
||||||
|
|
||||||
### [Example for command line arguemnts](docs/COMMAND_LINE_ARGUMENTS.md#examples)
|
### [Example for command line arguments](docs/COMMAND_LINE_ARGUMENTS.md#examples)
|
||||||
|
|
||||||
### Example for an interactive script
|
### Example for an interactive script
|
||||||
|
|
||||||
@@ -109,7 +111,7 @@ Press enter to quit
|
|||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
||||||
### I am running the script on an headless machine or a remote server. How can I authenticate my reddit account?
|
### I am running the script on a headless machine or on a remote server. How can I authenticate my reddit account?
|
||||||
- Download the script on your everday computer and run it for once.
|
- Download the script on your everday computer and run it for once.
|
||||||
- Authenticate the program on both reddit and imgur.
|
- Authenticate the program on both reddit and imgur.
|
||||||
- Go to your Home folder (for Windows users it is `C:\Users\[USERNAME]\`, for Linux users it is `/home/[USERNAME]`)
|
- Go to your Home folder (for Windows users it is `C:\Users\[USERNAME]\`, for Linux users it is `/home/[USERNAME]`)
|
||||||
|
|||||||
@@ -117,7 +117,9 @@ class Erome:
|
|||||||
post["postSubmitter"]+"_"+title+"_"+post['postId']+".tmp"
|
post["postSubmitter"]+"_"+title+"_"+post['postId']+".tmp"
|
||||||
)
|
)
|
||||||
|
|
||||||
imageURL = "https:" + IMAGES[0]
|
imageURL = IMAGES[0]
|
||||||
|
if 'https://' not in imageURL and 'http://' not in imageURL:
|
||||||
|
imageURL = "https://" + imageURL
|
||||||
|
|
||||||
try:
|
try:
|
||||||
getFile(fileDir,tempDir,imageURL)
|
getFile(fileDir,tempDir,imageURL)
|
||||||
@@ -146,7 +148,9 @@ class Erome:
|
|||||||
extension = getExtension(IMAGES[i])
|
extension = getExtension(IMAGES[i])
|
||||||
|
|
||||||
fileName = str(i+1)
|
fileName = str(i+1)
|
||||||
imageURL = "https:" + IMAGES[i]
|
imageURL = IMAGES[i]
|
||||||
|
if 'https://' not in imageURL and 'http://' not in imageURL:
|
||||||
|
imageURL = "https://" + imageURL
|
||||||
|
|
||||||
fileDir = folderDir / (fileName + extension)
|
fileDir = folderDir / (fileName + extension)
|
||||||
tempDir = folderDir / (fileName + ".tmp")
|
tempDir = folderDir / (fileName + ".tmp")
|
||||||
|
|||||||
Reference in New Issue
Block a user