Increased posts.json limit and now returns full profile dictionary
This commit is contained in:
parent
9b8f179a91
commit
2b77c1360a
@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# Update to enable multiple file downloads
|
# Update to enable multiple file downloads
|
||||||
# Update to include safe/nsfw filter
|
|
||||||
|
|
||||||
import magic
|
|
||||||
import requests
|
import requests
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -52,7 +50,8 @@ class downloader:
|
|||||||
username = None
|
username = None
|
||||||
password = None
|
password = None
|
||||||
tmp = None
|
tmp = None
|
||||||
limit=50
|
# Limit for posts.json is 200
|
||||||
|
limit=100
|
||||||
|
|
||||||
def __init__(self, username=None, password=None, tmp="/tmp"):
|
def __init__(self, username=None, password=None, tmp="/tmp"):
|
||||||
self.username = username
|
self.username = username
|
||||||
@ -113,13 +112,7 @@ class downloader:
|
|||||||
|
|
||||||
r = {
|
r = {
|
||||||
# Add profile to dictioanry
|
# Add profile to dictioanry
|
||||||
"name": profile["name"],
|
"profile": profile,
|
||||||
"backend": profile["backend"],
|
|
||||||
"tags": profile["tags"],
|
|
||||||
"message": profile["message"],
|
|
||||||
"message_nsfw": profile["message_nsfw"],
|
|
||||||
"force_nsfw": profile["force_nsfw"],
|
|
||||||
"banned_tags": profile["banned_tags"],
|
|
||||||
|
|
||||||
# Query results
|
# Query results
|
||||||
"search_url": search_url,
|
"search_url": search_url,
|
||||||
|
Reference in New Issue
Block a user