Increased posts.json limit and now returns full profile dictionary

This commit is contained in:
Anon 2022-08-30 22:29:13 -07:00
parent 9b8f179a91
commit 2b77c1360a

View File

@ -2,9 +2,7 @@
# TODO:
# Update to enable multiple file downloads
# Update to include safe/nsfw filter
import magic
import requests
import os
@ -52,7 +50,8 @@ class downloader:
username = None
password = None
tmp = None
limit=50
# Limit for posts.json is 200
limit=100
def __init__(self, username=None, password=None, tmp="/tmp"):
self.username = username
@ -113,13 +112,7 @@ class downloader:
r = {
# Add profile to dictioanry
"name": profile["name"],
"backend": profile["backend"],
"tags": profile["tags"],
"message": profile["message"],
"message_nsfw": profile["message_nsfw"],
"force_nsfw": profile["force_nsfw"],
"banned_tags": profile["banned_tags"],
"profile": profile,
# Query results
"search_url": search_url,