Created
November 14, 2017 01:02
-
-
Save matiskay/e97755488d41d825d8b25a76068769d2 to your computer and use it in GitHub Desktop.
A simple json crawler
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 json | |
import requests | |
r = requests.post( | |
'http://survey.dataminingperu.com/enc/ajax/comments.php', data={'codigo': '1'} | |
) | |
json_response = json.loads(r.text) | |
for record in json_response: | |
print(record['calificacion']) | |
print(record['curso']) | |
print(record['fecha']) | |
print(record['comentario']) | |
print(record['nombre']) | |
print(record['id']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment