mirror of
https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
synced 2026-01-08 10:15:36 +00:00
Compare commits
6 Commits
removeLink
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6194c57d9 | ||
|
|
cd87a4a120 | ||
|
|
08cddf4c83 | ||
|
|
88fa9e742d | ||
|
|
1c17f174a8 | ||
|
|
9b36336ac3 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -3,4 +3,5 @@ dist/
|
||||
MANIFEST
|
||||
__pycache__/
|
||||
src/__pycache__/
|
||||
config.json
|
||||
config.json
|
||||
env/
|
||||
|
||||
@@ -47,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.
|
||||
|
||||
### [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
|
||||
|
||||
@@ -111,7 +111,7 @@ Press enter to quit
|
||||
|
||||
## 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.
|
||||
- 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]`)
|
||||
|
||||
@@ -117,7 +117,9 @@ class Erome:
|
||||
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:
|
||||
getFile(fileDir,tempDir,imageURL)
|
||||
@@ -146,7 +148,9 @@ class Erome:
|
||||
extension = getExtension(IMAGES[i])
|
||||
|
||||
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)
|
||||
tempDir = folderDir / (fileName + ".tmp")
|
||||
|
||||
Reference in New Issue
Block a user