Skip to content

Instantly share code, notes, and snippets.

@NetBUG
Created April 13, 2017 17:32
Show Gist options
  • Save NetBUG/54cc4c31cc4d9a43da4a62fa0dee9f51 to your computer and use it in GitHub Desktop.
Save NetBUG/54cc4c31cc4d9a43da4a62fa0dee9f51 to your computer and use it in GitHub Desktop.
BKRS read for Marat
#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