Skip to content

Instantly share code, notes, and snippets.

@ThibaudLamothe
Created February 1, 2021 20:09
Show Gist options
  • Save ThibaudLamothe/a8e085e80e2454ebfedfecd9b2293e15 to your computer and use it in GitHub Desktop.
Save ThibaudLamothe/a8e085e80e2454ebfedfecd9b2293e15 to your computer and use it in GitHub Desktop.
import json
import requests
url = 'http://localhost:9080/crawl.json' + '?'
url += 'start_requests=1' + '&'
url += 'spider_name=wca'
data = requests.get(url)
data = json.loads(data.content)
# data.keys() => dict_keys(['status', 'items', 'items_dropped', 'stats', 'spider_name'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment