Giter Club home page Giter Club logo

chbh_google_scholar's Introduction

Extracting and predicting Google Scholar citations using beautifulsoup4, SerpAPI and Prophet

Analysis Guide Static Badge

This directory contains code for the extraction and forecasting of Google Scholar data for researchers at the Centre for Human Brain Health (CHBH), University of Birmingham.

Specficially, this involves:

  • Scraping a list of researchers at the CHBH from the CHBH website (using beautifulsoup4 ).
  • Extracting Google Scholar statistics including citation data (using serpapi ).
  • Forecasting citations for the years 2024, 2025 and 2026 (using prophet).

A more detailed guide on how to perform the analysis and a link to the dataset on Kaggle are available by clicking on the badges above.

Directory structure

├── README.md
├── code
│   ├── extract_scholar_info.py
│   ├── json_to_csv.py
│   ├── processing_citation_data.py
│   └── scrape_chbh.py
├── data
│   ├── chbh_google_scholar_statistics
│   │   ├── (42 individual json files, 1 for each person)
│   ├── citation_statistics
│   │   ├── citation_statistics.csv
│   │   └── citation_statistics_with_predictions.csv
│   └── names_and_ids
│       ├── chbh_names.json
│       ├── filtered_names_and_citation_ids.csv
│       ├── names.json
│       └── names_and_citation_ids.csv
├── notebooks
│   ├── citations_plot.png
│   └── plotting_chbh_statistics.ipynb
├── plots
│   ├── Lei Zhang_citations_per_year.html
│   ├── Lei Zhang_cumulative_citations.html
│   └── citations_plot.png
└── requirements.txt

Setting up the environment

Here are instructions on how to set up your environment:

Firstly, download the repository to your local machine, creating a virtualenv within.

git clone https://github.com/sohaamir/chbh_google_scholar.git
python3 -m venv .venv
source .venv/bin/activate
which python
/path/chbh_google_scholar/.venv/bin/python

Then install the requirements:

pip install -r requirements.txt

which are:

requests
beautifulsoup4
pandas
serpapi
matplotlib
prophet
ipykernel
traitlets
plotly
jupyter

Ultimately, we are able to use prophet to forecast citation counts for the next three years (2024, 2025 and 2026), and plot these predictions with historical data:



chbh_google_scholar's People

Contributors

sohaamir avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.