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: