Created
November 22, 2018 13:50
-
-
Save phanirithvij/a5921bed05702fced2cc82370b795c18 to your computer and use it in GitHub Desktop.
ShamefulBluevioletCoordinate created by phanirithvij - https://repl.it/@phanirithvij/ShamefulBluevioletCoordinate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
img_URL = "https://res.cloudinary.com/rootworld/image/upload/v1542648184/luffycuteandstuff.jpg" | |
API_URL = """\ | |
https://api.pinterest.com/v3/visual_search/flashlight/url/?\ | |
url={img_URL}\ | |
&x=0\ | |
&y=0\ | |
&w=1\ | |
&h=1\ | |
&base_scheme=https\ | |
""" | |
r = requests.get(API_URL.format(img_URL=img_URL)) | |
print(r.json()) | |
# For indentation ucomment these | |
# import json | |
# print(json.dumps(r.json(),indent=2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment