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.
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
File details
Details for the file a2b-1.0.2.tar.gz
.
File metadata
- Download URL: a2b-1.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28a3173d37f41568c79d8043bafa4789b0bde17602982cf93631741c5f8e4f6b |
|
MD5 | 23fdf1e074975ff2dd2c5648381801a4 |
|
BLAKE2b-256 | 500669519763eb8d2f8b767c5dc54ffa121a31b1bae9a73c57cc4f8acafec6d0 |