Created
April 13, 2017 17:32
-
-
Save NetBUG/54cc4c31cc4d9a43da4a62fa0dee9f51 to your computer and use it in GitHub Desktop.
BKRS read for Marat
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
#coding=utf-8 | |
import requests | |
import shutil | |
fn = "https://bkrs.info/changes.php?total=100&start=%d&view=words_edited" | |
def saveFile(path): | |
r = requests.get(fn % str(path), stream=True) | |
if r.status_code == 200: | |
with open(str(path) + ".htm", 'wb') as f: | |
r.raw.decode_content = True | |
shutil.copyfileobj(r.raw, f) | |
if __name__ == '__main__': | |
for a in range(0, 10000000, 100): | |
saveFile(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment