adjusted filter for higher quality images
This commit is contained in:
parent
0437f76af3
commit
512d0bdd2b
|
@ -15,7 +15,7 @@ session = requests.Session()
|
|||
session.headers.update({"Authorization" : "Bearer " + config['user_token']})
|
||||
|
||||
def make_post():
|
||||
post = requests.get('https://gelbooru.com/index.php', params={'page':'dapi','s':'post', 'q':'index', 'limit':1, 'tags':'loli sort:random score:>=10', 'json':1}).json()['post'][0]
|
||||
post = requests.get('https://gelbooru.com/index.php', params={'page':'dapi','s':'post', 'q':'index', 'limit':1, 'tags':'loli flat_chest sort:random score:>=100 -lowres -video', 'json':1}).json()['post'][0]
|
||||
print(post['id'])
|
||||
with tempfile.TemporaryFile('w+b', suffix='.' + post['file_url'].split('.')[-1]) as image:
|
||||
#with open('image.' + post['file_url'].split('.')[-1], 'w+b') as image:
|
||||
|
|
Loading…
Reference in New Issue