Skip to main content

A tool to extract and format academic data from Web of Science and Crossref

Project description

COSC425-DATA

A repository which implements data collection of a University's academic research articles within a given time period and classifies them into categories defined by the NSF PhD research focus areas taxonomy then provides:

  • Data on an article level
  • Data on individual authors
  • Data on category level

Currently the data is outputted in JSON format. There exists a script for converting the JSON to an Excel file but is currently somewhat finnicky.

A more thorough offline file formatting will be implemented in the future.

How to install

For non-development

  1. Install the package pip install academic-metrics

  2. Create a .env file in the root directory and add your OpenAI API key: OPENAI_API_KEY=<your_openai_api_key>

  3. Create a script run_pipeline.py in the root directory and add the following:

    from academic_metrics.runners.pipeline import PipelineRunner
    
    runner = PipelineRunner(ai_api_key=os.getenv("OPENAI_API_KEY"))
    runner.run_pipeline()
    

For development

  1. Clone the repository:
    • HTTPS: git clone https://github.com/SpencerPresley/COSC425-DATA.git
    • SSH: git clone git@github.com:SpencerPresley/COSC425-DATA.git
  2. Navigate into the project root directory cd COSC425-DATA and run the setup script python setup_environment.py:
    • This will install the academic_metrics package in editable mode and configure the pre-commit in .git/hooks
    • The git hook will format the code on commit using black

Note

As of 11/9/2024 the pipeline runs off input files in src/academic_metrics/data/core/input_files

Shortly integration of the crossref API code will be made in academic_metrics/runners/pipeline.py so that you can pass in your school name, data range, etc. to get your own data outputted.

Integration for writing to a mongoDB database is currently implemented only for our use case, future integration will allow two modes:

  1. Offline output files to src/academic_metrics/data/core/output_files
    • In this mode the API for crossref will still work but the output files will be saved locally rather to a database.
  2. Database support. For this you will have to create a .env file in the root directory and add the following:
    • MONGO_URI=<your_mongo_uri>
    • MONGO_DB_NAME=<your_mongo_db_name>
    • MONGO_COLLECTION_NAME=<your_mongo_collection_name>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

academic_metrics-1.0.1.tar.gz (128.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

academic_metrics-1.0.1-py3-none-any.whl (148.4 kB view details)

Uploaded Python 3

File details

Details for the file academic_metrics-1.0.1.tar.gz.

File metadata

  • Download URL: academic_metrics-1.0.1.tar.gz
  • Upload date:
  • Size: 128.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for academic_metrics-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ed7afb58e51f263f95be50d7bbbda6e6a7f26680c22faf14db2f89f5b24aebc5
MD5 bd105bb8c64fe01d84f487a6aaa92232
BLAKE2b-256 80d4bd1a52167428158d5b5de744ee43ab61434797bcb86850b9ea920e653cd6

See more details on using hashes here.

File details

Details for the file academic_metrics-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for academic_metrics-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 994a5aae513ec9257dfcf1f937a19027cb6b4f403299af370a6d1fca46487db5
MD5 3bfa864add7d2b71428c52ded3f282b7
BLAKE2b-256 17bb83b72d41fbbc36c08b9a0f19c4da72310ae3ef7890d03f38afa9f39cd6c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page