Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count citations #546

Open
haesleinhuepf opened this issue Dec 4, 2024 · 1 comment
Open

Count citations #546

haesleinhuepf opened this issue Dec 4, 2024 · 1 comment

Comments

@haesleinhuepf
Copy link
Member

haesleinhuepf commented Dec 4, 2024

we could use the scholary and crossrefapi libraries to count citations of DOIs we have in our database. Assume DOIs are stored among urls in a yml file. Examples taken from this yml file:

resources:
- authors:
  - Katarzyna Biernacka
  name: Efficiently starting
  url:
  - https://zenodo.org/record/3490058
  - https://doi.org/10.5281/zenodo.3490058
- authors:
  - Rebecca A. Senft
  name: "A biologist"
  url: https://doi.org/10.1371/journal.pbio.3002167

I would like to write a new Python script similar to scripts/auto-add-github-statistics.py . The new script goes through all entries in our yml file. For those that have a DOI link among their urls, I'd like to collect the number of citations and store them in a new "doi_statistics/20241202.csv" where the filename is the current date when the script is executed.

git-bob think about how to do this.

Hint: Do NOT modify any yml or csv directly. Write code that reads the yml file and writes the csv file.
Do NOT modify files in the resources directory!

@haesleinhuepf
Copy link
Member Author

Ok, git-bob cannot do it here due to rate limits. But a partial solution exists: haesleinhuepf/git-bob-playground#141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant