PyJSONProxy

simple proxy and scraper
git clone https://git.ce9e.org/PyJSONProxy.git

commit
069b6b8d453e58fa1fd494b03cd7201eeac71e15
parent
826fca0491ac3df3d3315c79811a05814ab1ec39
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-12-04 13:27
allow to post-process results

Diffstat

M jsonproxy/api.py 2 ++

1 files changed, 2 insertions, 0 deletions


diff --git a/jsonproxy/api.py b/jsonproxy/api.py

@@ -73,6 +73,8 @@ def scrape(url, config):
   73    73 	html = urlopen(url, parse=True)
   74    74 	data = get_fields(html, config)
   75    75 	data['url'] = url
   -1    76 	if 'post' in config:
   -1    77 		data = config['post'](data)
   76    78 	return jsonify(data)
   77    79 
   78    80