Created
March 10, 2018 08:05
-
-
Save DastanIqbal/efef490d187479a920f7f20e13527645 to your computer and use it in GitHub Desktop.
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
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