Skip to content

Instantly share code, notes, and snippets.

@matiskay
Created November 14, 2017 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matiskay/e97755488d41d825d8b25a76068769d2 to your computer and use it in GitHub Desktop.
Save matiskay/e97755488d41d825d8b25a76068769d2 to your computer and use it in GitHub Desktop.
A simple json crawler
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