Python package simplifies access to the WoS RESTful API
Project description
restful-wos
A client for Clarivate Analytics' Web of Science RESTful API.
Currently requests and extracts data in RIS format.
Installation
From PyPI via pip
$ pip install restful-wos
Latest development version:
$ git clone git+https://github.com/ConnectedSystems/restful-wos.git
$ cd restful-wos
$ pip install -e .
Usage
Firstly, put your Web of Science access tokens into a yaml file in the following format:
restful_wos:
wos_lite: YOUR ACCESS TOKEN FOR THE `LITE` API
wos_expanded: YOUR ACCESS TOKEN FOR THE `EXPANDED` API
Then simply pass in the location of the file to the RESTful client:
import restful_wos
# Create client and send query
client = restful_wos.RESTClient('config.yml')
search_request = 'TS=(uncertain* AND (catchment OR watershed OR water))'
resp = client.query(search_request, time_span=('2018-11-01', '2018-12-31'))
# Convert parsed responses into RIS records
ris_data = restful_wos.to_ris_text(resp)
# Output to a txt file
restful_wos.write_file(ris_data, 'ris_output', overwrite=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
restful-wos-0.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for restful_wos-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27a2e0f4b4cc6a2b9a08bd263511c0e2f6158f7278234f553c4df66caf911a07 |
|
MD5 | 30715c549cfc958f35b447e83760e11a |
|
BLAKE2b-256 | b94317e8b99da3727985312be17f50e67a86549696e2a92e0f562a096c1d46d8 |