Skip to content

njzjz/wenxian

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

wenxian

PyPI - Version Pepy Total Downlods

wenxian is a tool to generate ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ files from given identifiers (DOI, PMID, arXiv ID, or paper title).

子曰:“夏礼,吾能言之,杞不足征也。殷礼,吾能言之,宋不足征也。文献不足故也。足,则吾能征之矣。”——《论语》

Usage

Use wenxian in the browser (Deprecated)

Caution

Deprecated, as several websites that serve the API have disabled CORS.

Visit wenxian.njzjz.win to use wenxian in the browser.

Command line interface

wenxian requires Python 3.10. It's suggested to install uv first:

pip install uv

Then use uvx to run wenxian:

uvx wenxian from 10.1063/5.0155600

You can also search by paper title:

uvx wenxian from "Attention is all you need"

It is expected to see a ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ entry printed into the standard output.

By default, wenxian outputs ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ format. You can use the -t text or --type text option to generate plain text format.

The Agent Skill (used in OpenClaw or IDEs)

wenxian provides an Agent Skill in the skill directory, which has been supported by OpenClaw, Claude, Codex, and VS Code.

For example, you can ask your OpenClaw bot to install the skill https://github.com/njzjz/wenxian/tree/master/skill. After that is done, you can ask the bot to generate the references by sending the bot paper titles or DOIs.

Use wenxian in a GitHub Actions workflow

You can use wenxian in a GitHub Actions workflow, as a bridge between the input identifiers and the output ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ entries:

- name: Run wenxian
  id: wenxian
  uses: njzjz/wenxian@master
  with:
    id: 1512.03385
- name: Furthur uses (an example)
  run: echo "${{ steps.wenxian.outputs.bibtex }}"

Use wenxian in a GitHub issue of this repository

You can use wenxian in a GitHub issue of this repository. Comment @njzjz-bot 2312.15492 in #23, and the GitHub Actions will reply with the output ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ entries.

About

A tool to generate BibTeX files from given identifiers (DOI, PMID, or arXiv ID).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages