Git Product home page Git Product logo

wenjiedu / google_scholar_badge_generator Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 0.0 41 KB

This repository helps you automatically generate citation badges of articles/profiles on Google Scholar. With GitHub actions, you can make yourself a GoogleScholar version of shields.io

License: GNU General Public License v3.0

Python 100.00%
google-scholar badge-generator shields-io shieldsio shieldsio-badges shieldsio-endpoint

google_scholar_badge_generator's Introduction

GoogleScholar Badge Generator

shields.io does not provide an API to help generate citation badges of articles/profiles on Google Scholar. Therefore, I create this repository to build us such a tool. Need citation badges but cannot find a proper tool? Try GSBG! You can even make yourself a GoogleScholar version of shields.io with GitHub actions! Take a look at Usage below.

Please star🌟 this repo to help others notice GSBG if you think it is useful. Thank you!

❖ Installation

You can install GSBG via pip: pip install gsbg, or from the latest source code: pip install https://github.com/WenjieDu/Google_Scholar_Badge_Generator/archive/main.zip.

❖ Usage

Apart from the below examples, you can also integrate GSBG with GitHub workflows to automatically generate badges for your articles/profiles, save them in your repo, and update them periodically. Please take a look at https://github.com/WenjieDu/WenjieDu for an example. The workflow .github/workflows/gene_citation_badges.yml will regularly run the generating script scripts/gene_google_scholar_badges.py to maintain the badges under figs/citation_badges.

You can fork my repo and modify the script and the workflow to fit your own needs. If you meet any question, please raise an issue. I'll try my best to help.

import gsbg

article_link = "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=j9qvUg0AAAAJ&citation_for_view=j9qvUg0AAAAJ:Y0pCki6q_DkC"
profile_link = "https://scholar.google.com/citations?user=j9qvUg0AAAAJ&hl=en"

article_citation_num = gsbg.fetch_article_citation_num(article_link)
profile_citation_num = gsbg.fetch_profile_citation_num(profile_link)
gsbg.gene_citation_badge_link(
    link='https://scholar.google.com/citations?user=j9qvUg0AAAAJ&hl=en', 
    link_type="profile",
)
gsbg.gene_citation_badge_svg(
    link='https://scholar.google.com/citations?user=j9qvUg0AAAAJ&hl=en', 
    link_type="profile",
    svg_name='gsbg.svg',
    path_to_save='generated_badges',
)
🏠 Visits GSBG visits

google_scholar_badge_generator's People

Contributors

wenjiedu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.