File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 77
88# In the query parameters you can define:
99# 1. The number of GIFs to return using the `limit` parameter.
10- # 2. The accepted rating of the GIFs returned using the `rating` parameter: https://developers.giphy.com/docs/optional-settings#rating
10+ # 2. The accepted rating of the GIFs returned using the `rating` parameter
11+ # https://developers.giphy.com/docs/optional-settings#rating
1112params = {"api_key" : API_KEY , "limit" : 3 , "rating" : "g" }
1213
1314# The response will contain a list with all the GIFs that match your query.
14- # For each of those, you want to get the `title`, `url` and the `trending_datetime` fields.
15+ # For each of those, you want to get the `title`, `url` and the
16+ # `trending_datetime` fields.
1517response = requests .get (endpoint , params = params ).json ()
1618for gif in response ["data" ]:
1719 title = gif ["title" ]
You can’t perform that action at this time.
0 commit comments