Skip to content

Instantly share code, notes, and snippets.

@phanirithvij
Created November 22, 2018 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phanirithvij/72eeb6121e781f7022fffa1efe4e50bb to your computer and use it in GitHub Desktop.
Save phanirithvij/72eeb6121e781f7022fffa1efe4e50bb to your computer and use it in GitHub Desktop.
ShamefulBluevioletCoordinate created by phanirithvij - https://repl.it/@phanirithvij/ShamefulBluevioletCoordinate
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