From d53d86e8201915ac2d9a08bac761210419bc45a5 Mon Sep 17 00:00:00 2001 From: 5vl Date: Tue, 11 Apr 2023 11:22:13 +0200 Subject: [PATCH] Update get_cat_and_post.py --- get_cat_and_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_cat_and_post.py b/get_cat_and_post.py index 33a404f..dc980c5 100644 --- a/get_cat_and_post.py +++ b/get_cat_and_post.py @@ -14,7 +14,7 @@ def upload_media(): ) tweepy_api = tweepy.API(tweepy_auth) - url = "https://api.thecatapi.com/v1/images/search?mime_types=jpg,png&api_key=API_KEY" + url = "https://api.thecatapi.com/v1/images/search?mime_types=jpg&api_key=API_KEY" cats = requests.request("GET", url).json() cat_pic = cats[0]["url"] img_data = requests.get(cat_pic).content