Created
August 22, 2012 11:25
-
-
Save scraperdragon/3424623 to your computer and use it in GitHub Desktop.
Convert Chrome headers to Python's Requests dictionary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dict([[h.partition(':')[0], h.partition(':')[2]] for h in rawheaders.split('\n')]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment