Skip to content

Instantly share code, notes, and snippets.

@davidjb
Last active August 29, 2015 14:08
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 davidjb/bbb91f978459042e1426 to your computer and use it in GitHub Desktop.
Save davidjb/bbb91f978459042e1426 to your computer and use it in GitHub Desktop.
This obtains and processes all latest browser versions from CanIUse JSON raw data
import requests
caniuse = requests.get('https://github.com/Fyrd/caniuse/raw/master/fulldata-json/data-2.0.json')
data = caniuse.json()
# We could do a lot more than print here, but this is just an uber quick demo
for agent in data['agents']:
print(data['agents'][agent]['browser'] + ': ' + data['agents'][agent]['current_version'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment