Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created June 5, 2013 08:11
Show Gist options
  • Save hpk42/5712361 to your computer and use it in GitHub Desktop.
Save hpk42/5712361 to your computer and use it in GitHub Desktop.
>>> requests.get("https://pypi.python.org/simple/dddttt/").headers["x-pypi-last-serial"]
'717877'
>>> requests.get("https://front.python.org/simple/dddttt/", headers={"HOST": "pypi.python.org"}).headers["x-pypi-last-serial"]
'752451'
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment