mirror of
				https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
				synced 2025-10-29 17:40:15 +00:00 
			
		
		
		
	If downvoted exists in args then try fetch downvoted posts from reddit user.
This commit is contained in:
		| @@ -280,6 +280,20 @@ def getPosts(args): | |||||||
|         except Forbidden: |         except Forbidden: | ||||||
|             raise InsufficientPermission("You do not have permission to do that") |             raise InsufficientPermission("You do not have permission to do that") | ||||||
|  |  | ||||||
|  |     elif "downvoted" in args: | ||||||
|  |         print ( | ||||||
|  |             "downvoted posts of {user}\nlimit: {limit}\n".format( | ||||||
|  |                 user=args["user"], | ||||||
|  |                 limit=args["limit"] | ||||||
|  |             ).upper(),noPrint=True | ||||||
|  |         ) | ||||||
|  |         try: | ||||||
|  |             return redditSearcher( | ||||||
|  |                 reddit.redditor(args["user"]).downvoted(limit=args["limit"]) | ||||||
|  |             ) | ||||||
|  |         except Forbidden: | ||||||
|  |             raise InsufficientPermission("You do not have permission to do that") | ||||||
|  |  | ||||||
|     elif "post" in args: |     elif "post" in args: | ||||||
|         print("post: {post}\n".format(post=args["post"]).upper(),noPrint=True) |         print("post: {post}\n".format(post=args["post"]).upper(),noPrint=True) | ||||||
|         return redditSearcher( |         return redditSearcher( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user