8 Commits

Author SHA1 Message Date
Ali Parlakci
a701444d5b Updated the version info 2018-07-10 03:14:43 +03:00
Ali Parlakci
5a030a156c Updated the links 2018-07-10 03:13:39 +03:00
Ali Parlakci
ffe3839aee Added .md as a possible extension 2018-07-10 03:12:24 +03:00
Ali Parlakci
a796038b71 Merge branch 'master' of https://github.com/aliparlakci/bulk-downloader-for-reddit 2018-07-10 03:11:49 +03:00
Ali Parlakci
ddccebbc70 Not creating POSTS.json file properly bug fix 2018-07-10 03:11:38 +03:00
aliparlakci
5cfa443f83 Edited FAQ about markdowns 2018-07-10 02:57:44 +03:00
aliparlakci
2103c62218 Fixed the broken link 2018-07-10 02:55:45 +03:00
aliparlakci
10128b63ac Added link to Changelog 2018-07-10 02:54:28 +03:00
3 changed files with 7 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ This program downloads imgur, gfycat and direct image and video links of saved p
### It...
- 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
- 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
- puts post titles to file's name
- 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
### 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
### 10/07/2018
### [10/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/ffe3839aee6dc1a552d95154d817aefc2b66af81)
- Added support for *self* post
- Now getting posts is quicker
- Now getting posts is quicker

View File

@@ -20,7 +20,7 @@ from src.errors import *
__author__ = "Ali Parlakci"
__license__ = "GPL"
__version__ = "1.0.0"
__version__ = "1.0.1"
__maintainer__ = "Ali Parlakci"
__email__ = "parlakciali@gmail.com"
@@ -311,7 +311,7 @@ def postExists(POST):
title = nameCorrector(POST['postTitle'])
FILENAME = title + "_" + POST['postId']
PATH = GLOBAL.directory / POST["postSubreddit"]
possibleExtensions = [".jpg",".png",".mp4",".gif",".webm"]
possibleExtensions = [".jpg",".png",".mp4",".gif",".webm",".md"]
for i in range(2):
for extension in possibleExtensions:

View File

@@ -360,7 +360,7 @@ def redditSearcher(posts,SINGLE_POST=False):
printSubmission(submission,subCount,orderCount)
subList.append(details)
allPosts = {**allPosts,**details}
allPosts[subCount] = [details]
postsFile.add(allPosts)