Skip to content

Instantly share code, notes, and snippets.

@DastanIqbal
Created March 10, 2018 08:05
Show Gist options
  • Save DastanIqbal/efef490d187479a920f7f20e13527645 to your computer and use it in GitHub Desktop.
Save DastanIqbal/efef490d187479a920f7f20e13527645 to your computer and use it in GitHub Desktop.
import requests
import time
headers = {
'Referer': <your referer url>,
'Content-Type' : "application/x-www-form-urlencoded"
}
url=<your target url>
for x in range(<this was my range 11K,12K>):
payload = {'regno':x}
response = requests.post(url, headers=headers,data=payload)
fileName="<savelocation>/11k/log_"+str(x)+".html">
file=open(fileName,"wb")
file.write(response.content)
file.close()
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment