Created
September 10, 2016 02:12
-
-
Save alculquicondor/5511c7ccd6321ab15d8d5bd88dfa7f3b 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
| import requests | |
| import time | |
| url = "http://www.igp.gob.pe/bdsismos/ultimosSismosSentidos.php" | |
| data = { | |
| 'xjxfun': 'aux', | |
| 'xjxr': int(time.time() * 1000), | |
| 'xjxargs[]': ['N20', 'N1', '<xjxobj><e><k>optionMonth0</k><v>S1</v></e><e><k>optionMonth1</k><v>S2</v></e><e><k>optionMonth2</k><v>S3</v></e><e><k>optionMonth3</k><v>S4</v></e><e><k>optionMonth4</k><v>S5</v></e><e><k>optionMonth5</k><v>S6</v></e><e><k>optionMonth6</k><v>S7</v></e><e><k>optionMonth7</k><v>S8</v></e><e><k>optionMonth8</k><v>S9</v></e></xjxobj>'] | |
| } | |
| response = requests.post(url, data=data) | |
| print response.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment