Skip to main content

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)

Metadata

Release files for restful-wos 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for restful-wos 1.0.1
File Size Uploaded
restful-wos-1.0.1.tar.gz 6.6 kB Details

Release files / restful-wos-1.0.1.tar.gz

Download URL restful-wos-1.0.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
59e95546d7d919f5d71ea4c5f62e23fddd6b5919ad3d2665a85a463dafe8539f
BLAKE2b-256 checksum
How to use checksums
0f1355e3a07514b92bdbf9bae5c5cdb15e5a74cb3c1c9c917b6bc7423bc33b73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page