mirror of
https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
synced 2026-01-26 19:16:52 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
280147282b | ||
|
|
b7baf07fb5 |
@@ -1,4 +1,7 @@
|
|||||||
# Changes on *master*
|
# Changes on *master*
|
||||||
|
## [27/01/2019](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/b7baf07fb5998368d87e3c4c36aed40daf820609)
|
||||||
|
- Clarified the instructions
|
||||||
|
|
||||||
## [28/08/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/d56efed1c6833a66322d9158523b89d0ce57f5de)
|
## [28/08/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/d56efed1c6833a66322d9158523b89d0ce57f5de)
|
||||||
- Adjusted algorith used for extracting gfycat links because of gfycat's design change
|
- Adjusted algorith used for extracting gfycat links because of gfycat's design change
|
||||||
- Ignore space at the end of the given directory
|
- Ignore space at the end of the given directory
|
||||||
|
|||||||
23
script.py
23
script.py
@@ -23,7 +23,7 @@ from src.tools import (GLOBAL, createLogFile, jsonFile, nameCorrector,
|
|||||||
|
|
||||||
__author__ = "Ali Parlakci"
|
__author__ = "Ali Parlakci"
|
||||||
__license__ = "GPL"
|
__license__ = "GPL"
|
||||||
__version__ = "1.6.4"
|
__version__ = "1.6.4.1"
|
||||||
__maintainer__ = "Ali Parlakci"
|
__maintainer__ = "Ali Parlakci"
|
||||||
__email__ = "parlakciali@gmail.com"
|
__email__ = "parlakciali@gmail.com"
|
||||||
|
|
||||||
@@ -265,12 +265,15 @@ class PromptUser:
|
|||||||
|
|
||||||
if programMode == "subreddit":
|
if programMode == "subreddit":
|
||||||
|
|
||||||
subredditInput = input("subreddit (enter frontpage for frontpage): ")
|
subredditInput = input("(type frontpage for all subscribed subreddits,\n" \
|
||||||
|
" use plus to seperate multi subreddits:" \
|
||||||
|
" pics+funny+me_irl etc.)\n\n" \
|
||||||
|
"subreddit: ")
|
||||||
GLOBAL.arguments.subreddit = subredditInput
|
GLOBAL.arguments.subreddit = subredditInput
|
||||||
|
|
||||||
while not (subredditInput == "" or subredditInput.lower() == "frontpage"):
|
# while not (subredditInput == "" or subredditInput.lower() == "frontpage"):
|
||||||
subredditInput = input("subreddit: ")
|
# subredditInput = input("subreddit: ")
|
||||||
GLOBAL.arguments.subreddit += "+" + subredditInput
|
# GLOBAL.arguments.subreddit += "+" + subredditInput
|
||||||
|
|
||||||
if " " in GLOBAL.arguments.subreddit:
|
if " " in GLOBAL.arguments.subreddit:
|
||||||
GLOBAL.arguments.subreddit = "+".join(GLOBAL.arguments.subreddit.split())
|
GLOBAL.arguments.subreddit = "+".join(GLOBAL.arguments.subreddit.split())
|
||||||
@@ -297,7 +300,7 @@ class PromptUser:
|
|||||||
GLOBAL.arguments.time = "all"
|
GLOBAL.arguments.time = "all"
|
||||||
|
|
||||||
elif programMode == "multireddit":
|
elif programMode == "multireddit":
|
||||||
GLOBAL.arguments.user = input("\nredditor: ")
|
GLOBAL.arguments.user = input("\nmultireddit owner: ")
|
||||||
GLOBAL.arguments.multireddit = input("\nmultireddit: ")
|
GLOBAL.arguments.multireddit = input("\nmultireddit: ")
|
||||||
|
|
||||||
print("\nselect sort type:")
|
print("\nselect sort type:")
|
||||||
@@ -648,16 +651,16 @@ def download(submissions):
|
|||||||
def main():
|
def main():
|
||||||
|
|
||||||
VanillaPrint(
|
VanillaPrint(
|
||||||
f" Bulk Downloader for Reddit v{__version__}\n" \
|
f"\nBulk Downloader for Reddit v{__version__}\n" \
|
||||||
f" Written by Ali PARLAKCI – parlakciali@gmail.com\n\n" \
|
f"Written by Ali PARLAKCI – parlakciali@gmail.com\n\n" \
|
||||||
f" https://github.com/aliparlakci/bulk-downloader-for-reddit/"
|
f"https://github.com/aliparlakci/bulk-downloader-for-reddit/"
|
||||||
)
|
)
|
||||||
GLOBAL.arguments = parseArguments()
|
GLOBAL.arguments = parseArguments()
|
||||||
|
|
||||||
if GLOBAL.arguments.directory is not None:
|
if GLOBAL.arguments.directory is not None:
|
||||||
GLOBAL.directory = Path(GLOBAL.arguments.directory.strip())
|
GLOBAL.directory = Path(GLOBAL.arguments.directory.strip())
|
||||||
else:
|
else:
|
||||||
GLOBAL.directory = Path(input("download directory: ").strip())
|
GLOBAL.directory = Path(input("\ndownload directory: ").strip())
|
||||||
|
|
||||||
print("\n"," ".join(sys.argv),"\n",noPrint=True)
|
print("\n"," ".join(sys.argv),"\n",noPrint=True)
|
||||||
print(f"Bulk Downloader for Reddit v{__version__}\n",noPrint=True
|
print(f"Bulk Downloader for Reddit v{__version__}\n",noPrint=True
|
||||||
|
|||||||
Reference in New Issue
Block a user