wos_reports

Scripts to generate reports from Web of Science

https://github.com/caltechlibrary/wos_reports

Science Score: 62.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 1 committers (100.0%) from academic institutions
  • Institutional organization owner
    Organization caltechlibrary has institutional domain (www.library.caltech.edu)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.3%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Scripts to generate reports from Web of Science

Basic Info
  • Host: GitHub
  • Owner: caltechlibrary
  • License: other
  • Language: Python
  • Default Branch: master
  • Size: 10.7 KB
Statistics
  • Stars: 2
  • Watchers: 6
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 7 years ago · Last pushed about 2 years ago
Metadata Files
Readme License Citation

README.md

wos_reports

Generate reports from Web of Science

citation_report

Take a csv file with DOIs, return a csv file with DOIs and citation counts

Requires:

Python 3 (Recommended via Anaconda) with reqests library.

Usage

Type python citation_report.csv doi.csv; you'll get an output.csv file. You need to get a WOS developer token from developer.clarivate.com and save it to an environment variable by typing export WOSTOK=***token goes here***

Owner

  • Name: Caltech Library
  • Login: caltechlibrary
  • Kind: organization
  • Email: helpdesk@library.caltech.edu
  • Location: Pasadena, CA 91125

We manage the physical and digital holdings of the California Institute of Technology, provide services and training, and develop open-source software.

Citation (citation_report.py)

import os,csv,argparse
import requests

parser = argparse.ArgumentParser(description=\
        "Get WOS citation counts for a list of DOIs")
parser.add_argument('csv', help='file with DOIs separated by ,')
args = parser.parse_args()

dois = []

with open(args.csv,newline='') as csvfile:
    reader = csv.reader(csvfile)
    for row in reader:
        dois += row

out = open('output.csv','w',newline='')
writer = csv.writer(out)

#Run query to get scope of records
token = os.environ['WOSTOK']
headers = {
    'X-ApiKey' : token,
    'Content-type': 'application/json'
}

base_url = 'https://api.clarivate.com/api/wos/?databaseId=WOK'

for doi in dois:
    url = base_url + '&count=1&firstRecord=1&usrQuery=DO='+doi
    response = requests.get(url,headers=headers)
    response = response.json()
    if response['QueryResult']['RecordsFound'] == 0:
        print(doi+' not found in Web of Science')
    else:
        citations = response['Data']['Records']['records']['REC']['dynamic_data']['citation_related']['tc_list']['silo_tc']['local_count']
        writer.writerow([doi,citations])

GitHub Events

Total
Last Year

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 11
  • Total Committers: 1
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Tom Morrell t****l@c****u 11
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels