Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jaredlockhart/1f576d2a93cea813af859db18c771d3d to your computer and use it in GitHub Desktop.
Save jaredlockhart/1f576d2a93cea813af859db18c771d3d to your computer and use it in GitHub Desktop.
In [9]: pprint.pprint(json.loads(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))
{u'error': u'',
u'urls': {u'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/': {u'description': u'Google search history suggests many Britons had little idea what they were voting for.',
u'favicon_url': u'https://www.washingtonpost.com/favicon.ico',
u'image_url': u'https://img.washingtonpost.com/rf/image_1484w/2010-2019/Wires/Images/2016-06-24/AP/Britain_EU-f57a6.jpg',
u'original_url': u'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/',
u'provider_url': u'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/',
u'title': u'The British are frantically Googling what the E.U. is, hours after voting to leave it',
u'type': u'article',
u'url': u'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/'}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment