adjusted filter for higher quality images

This commit is contained in:
Wardyn 2023-01-28 10:52:41 -08:00
parent 0437f76af3
commit 512d0bdd2b
1 changed files with 1 additions and 1 deletions

View File

@ -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: