You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"requests" is a module much better than build-in urllib and urllib2.
"request_cache" provides a cache for requests, regardless the actual caching headers. Very useful for both development and actual data-loading.
Example code:
#!python
import requests
import requests_cache
requests_cache.install_cache('arrayexpress_cache')
res = requests.get('http://www.ebi.ac.uk/arrayexpress/json/v2/experiments/E-GEOD-19279')
data = res.json()
res = requests.get('http://www.ebi.ac.uk/arrayexpress/files/E-GEOD-19279/E-GEOD-19279.sdrf.txt')
data = res.text()
http://docs.python-requests.org/en/latest/
https://github.com/reclosedev/requests-cache
"requests" is a module much better than build-in urllib and urllib2.
"request_cache" provides a cache for requests, regardless the actual caching headers. Very useful for both development and actual data-loading.
Example code:
The text was updated successfully, but these errors were encountered: