Skip to navigation
How to retrieve JSON data (yacy API) over a SRU request using pythons urlib3
04.10.15
example: request the yacy API to getting search results for the word python import os import urllib3 import json req = 'http://search.yacy.de/yacysearch.json?query=python&nav=all' http = urllib3.PoolManager() r = http.request('GET',req) data = r.data.decode('utf-8') o = json.loads(data) #print(o['channels'])
http://urllib3.readthedocs.org/en/latest/
Reply
Anonymous
Information Epoch 1714420834
Avoid captive user interfaces.
Home
Notebook
Contact us