Created
February 11, 2017 16:58
-
-
Save serhii73/afe26c1eed5af93404b37d620c4dbe8b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| r = requests.get(url) | |
| with open('test.html', 'w') as output_file: | |
| output_file.write(r.text.encode('cp1251')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment