Skip to content

Automatically download BibTeX from MyBib

André Kuhlmann edited this page Mar 19, 2022 · 2 revisions

In case you are using mybib.com as your citation tool, I have written a small script, you can prepend inside your generation script generate.sh:

curl "https://www.mybib.com/download/<PROJECT-ID>/bibtex" \
  -H 'Cookie: <YOUR-COOKIE>' -o bibliography.bib

For this to function properly, you need to extract the following information from your browser:

  1. Extract your project ID from the address bar and replace the field labeled as <PROJECT-ID> with it
  2. Open up your Browsers Developer tools (macOS: CMD + ALT + I, Windows: STRG + ALT + I) and visit the console. Paste the following code snippet and hit enter:
    document.cookie
    Once done, replace the <YOUR-COOKIE> placeholder with the output of the execution.

This only applies to local development for now and is not yet implemented in the GitHub Action pipeline.

Clone this wiki locally