Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/connectedsystems/restful-wos
RESTful API Client for the Web of Science
https://github.com/connectedsystems/restful-wos
api-client bibliographic-database restful-api science-data web-of-science
Last synced: 18 days ago
JSON representation
RESTful API Client for the Web of Science
- Host: GitHub
- URL: https://github.com/connectedsystems/restful-wos
- Owner: ConnectedSystems
- License: isc
- Created: 2019-01-07T03:40:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-10T13:26:37.000Z (about 2 years ago)
- Last Synced: 2024-10-12T10:30:19.344Z (26 days ago)
- Topics: api-client, bibliographic-database, restful-api, science-data, web-of-science
- Language: Python
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
```bash
$ pip install restful-wos
```Latest development version:
```bash
$ 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:
```yaml
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:
```python
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)
```