From 512d0bdd2bc386db9e24168e0ea10d79aa66fc2a Mon Sep 17 00:00:00 2001 From: Wardyn Date: Sat, 28 Jan 2023 10:52:41 -0800 Subject: [PATCH] adjusted filter for higher quality images --- lolibot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lolibot.py b/lolibot.py index d40fee5..2dc5b01 100644 --- a/lolibot.py +++ b/lolibot.py @@ -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: