Skip to content

clarivate/clarivate-c3-datafeed-api-client-python

Repository files navigation

Clarivate's DATA FEED-API

A client interface and sample code for Clarivate's Data Feed-API and the available content sets.

Description

Clarivate Data Feed API provides consolidated access to bulk-download various Clarivate content sets from multiple domains.

Getting Started

Authorization

A valid API KEY is required. first, you need a valid Clarivate subscription (Sales enquiries). then, you need to self-register for an API KEY into our Clarivate Developer Portal.

Dependencies

  • Poetry for Python package and environment management

The library is written in python and support python version >= 3.9.0, You can also use Pyenv for this

pyenv install 3.9.0

To switch current python version then you can execute

pyenv local 3.9.0
  • Create a new virtual environment
python3 -m venv .venv

and activate it

 source <venv>/bin/activate  # POSIX
 <venv>\Scripts\activate.bat  # Windows CMD
 <venv>\Scripts\Activate.ps1  # Windows Powershell

Alternatively, you can use Intellij IDEA SDK Management

  • Install poetry within virtual environment
python -m pip install poetry
  • Install project dependencies
 poetry install

How to use the library?

Import

from clarivate import datafeedapi

Examples

  • Download a dataset in async mode. (example with all parameters)
client = datafeedapi.Client('api key','server url')
response = client.fetch('dataset', 'preset', 'internal change number', 'output format', 'split files', 'extract resources')
  • Download a dataset in sync mode. (example with all parameters)
client = datafeedapi.Client('api key','server url')
response = client.fetch_sync('dataset', 'preset', 'internal change number', 'output format', 'split files', 'extract resources')

Note 1: 'api key' and 'server url' can be set into the config.py file.

Note 2: 'dataset', 'preset', 'internal change number', 'output format', 'split files' and 'extract resources' parameters have default settings.

Help

Support

Authors

  • © 2024 Clarivate

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Version History

1.0 - 2024/01/01

* Initial Release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages