mirror of
https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
synced 2026-01-20 16:15:50 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a701444d5b | ||
|
|
5a030a156c | ||
|
|
ffe3839aee | ||
|
|
a796038b71 | ||
|
|
ddccebbc70 | ||
|
|
5cfa443f83 | ||
|
|
2103c62218 | ||
|
|
10128b63ac |
@@ -20,7 +20,7 @@ This program downloads imgur, gfycat and direct image and video links of saved p
|
|||||||
### It...
|
### It...
|
||||||
- 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
|
||||||
- sorts post by hot, top, new and so on
|
- sorts post by hot, top, new and so on
|
||||||
- downloads imgur albums, gfycat links, [self posts](#i-can-t-open-the-self-posts-) and any link to a direct image
|
- downloads imgur albums, gfycat links, [self posts](#i-cant-open-the-self-posts) and any link to a direct image
|
||||||
- skips the existing ones
|
- skips the existing ones
|
||||||
- puts post titles to file's name
|
- puts post titles to file's name
|
||||||
- puts every post to its subreddit's folder
|
- puts every post to its subreddit's folder
|
||||||
@@ -161,9 +161,9 @@ py -3 script.py C:\\NEW_FOLDER\\ANOTHER_FOLDER --log UNNAMED_FOLDER\\FAILED.json
|
|||||||
- Try `python3` or `python` or `py -3` as python have real issues about naming their program
|
- Try `python3` or `python` or `py -3` as python have real issues about naming their program
|
||||||
|
|
||||||
### I can't open the self posts.
|
### I can't open the self posts.
|
||||||
- Self posts are held at subreddit as Markdown. So, the script downloads them as Markdown 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.
|
- 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.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
### 10/07/2018
|
### [10/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/ffe3839aee6dc1a552d95154d817aefc2b66af81)
|
||||||
- Added support for *self* post
|
- Added support for *self* post
|
||||||
- Now getting posts is quicker
|
- Now getting posts is quicker
|
||||||
@@ -20,7 +20,7 @@ from src.errors import *
|
|||||||
|
|
||||||
__author__ = "Ali Parlakci"
|
__author__ = "Ali Parlakci"
|
||||||
__license__ = "GPL"
|
__license__ = "GPL"
|
||||||
__version__ = "1.0.0"
|
__version__ = "1.0.1"
|
||||||
__maintainer__ = "Ali Parlakci"
|
__maintainer__ = "Ali Parlakci"
|
||||||
__email__ = "parlakciali@gmail.com"
|
__email__ = "parlakciali@gmail.com"
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@ def postExists(POST):
|
|||||||
title = nameCorrector(POST['postTitle'])
|
title = nameCorrector(POST['postTitle'])
|
||||||
FILENAME = title + "_" + POST['postId']
|
FILENAME = title + "_" + POST['postId']
|
||||||
PATH = GLOBAL.directory / POST["postSubreddit"]
|
PATH = GLOBAL.directory / POST["postSubreddit"]
|
||||||
possibleExtensions = [".jpg",".png",".mp4",".gif",".webm"]
|
possibleExtensions = [".jpg",".png",".mp4",".gif",".webm",".md"]
|
||||||
|
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
for extension in possibleExtensions:
|
for extension in possibleExtensions:
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ def redditSearcher(posts,SINGLE_POST=False):
|
|||||||
printSubmission(submission,subCount,orderCount)
|
printSubmission(submission,subCount,orderCount)
|
||||||
subList.append(details)
|
subList.append(details)
|
||||||
|
|
||||||
allPosts = {**allPosts,**details}
|
allPosts[subCount] = [details]
|
||||||
|
|
||||||
postsFile.add(allPosts)
|
postsFile.add(allPosts)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user