Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jaredlockhart/708a926b73cdaa5c2ddc7a197dd8d4ad to your computer and use it in GitHub Desktop.
Save jaredlockhart/708a926b73cdaa5c2ddc7a197dd8d4ad to your computer and use it in GitHub Desktop.
In [107]: print requests.post('http://metadata.dev.mozaws.net/', data=json.dumps({'urls': ['https://www.washingtonpost.com/news/the-switch/wp/2016/06/24/the-british-are-frantically-googling-what-the-eu-is-hours-after-voting-to-leave-it/']}), headers={'content-type':'application/json'}).content
{
"error":"",
"urls":{
"https://www.washingtonpost.com/news/the-switch/wp/2016/06/24/the-british-are-frantically-googling-what-the-eu-is-hours-after-voting-to-leave-it/":{
"description":"Google search history suggests many Britons had little idea what they were voting for.",
"image_url":"https://img.washingtonpost.com/rf/image_1484w/2010-2019/Wires/Images/2016-06-24/AP/Britain_EU-f57a6.jpg",
"title":"The British are frantically Googling what the E.U. is, hours after voting to leave it",
"type":"article",
"url":"https://www.washingtonpost.com/news/the-switch/wp/2016/06/24/the-british-are-frantically-googling-what-the-eu-is-hours-after-voting-to-leave-it/",
"original_url":"https://www.washingtonpost.com/news/the-switch/wp/2016/06/24/the-british-are-frantically-googling-what-the-eu-is-hours-after-voting-to-leave-it/",
"provider_url":"https://www.washingtonpost.com/news/the-switch/wp/2016/06/24/the-british-are-frantically-googling-what-the-eu-is-hours-after-voting-to-leave-it/",
"favicon_url":"https://www.washingtonpost.com/favicon.ico"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment