Skip to main content

Replace arxiv links in markdowns by their corresponding bibliography.

Project description

A2B (Arxiv to Bibliography)

Replace arxiv links by their corresponding bibliography in markdowns. Inspired by Mu Li.

demo

This repo provides a tool to replace arXiv links in markdown files with their corresponding bibliographic information. The script uses the Semantic Scholar API to retrieve information such as authors, title, journal, year, and citation count for a given arXiv paper.

Installation

To install a2b, make sure you have pip installed and run:

pip install a2b

Usage

The tool can be run from the command line by passing the file path or directory path as an argument.

Replace arxiv links in a single markdown file

a2b path/to/markdown.md

Replace arxiv links in all markdown files within a directory

Run the following command to replace all arxiv links found in the given directory and its subdirectories.

a2b path/to/directory

To replace arxiv links in the markdown files ONLY within the directory (not recursively), use arguments --no-recursive or -nr:

a2b -nr path/to/directory

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

a2b-1.0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Supported by

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