Skip to content

A terse command-line tool for importing papers into Obsidian (and Notion) from arXiv

License

Notifications You must be signed in to change notification settings

anilkeshwani/arxivbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arxivbot

Feature Requests

Credentials

credentials_template.env is a copy of (template for) a file, credentials.env, which should be placed in the same (top-level) directory with your Notion Integration token for authenticating. This is more convenient that exporting it each time you use the tool.

Semantic Scholar Resources

Move the arxivbot onto the Semantic Scholar (S2) Academic Graph API.

Motivations:

  • this is more general
  • aggregates data from a wide array of sources - in addition to arXiv, we can directly collect from e.g. ACL, Nature etc. more easily
  • easily queryable by extracting S2 paper SHA from URL (terminal)

Suggested usage: Exactly as arxivbot but with S2 URL.

  • Ideally would accept arXiv or S2 URL
    • can we extract the same metadata from both;
    • maybe just a fallback to arXiv arxivbot if arXiv ID/URL passed?
  • What does S2 give us (response) that we might want to add to the paper (meta)data?

Example S2 paper page URL:

https://www.semanticscholar.org/paper/WavTokenizer%3A-an-Efficient-Acoustic-Discrete-Codec-Ji-Jiang/ebdbded60f48131ed7ba73807c3c086993a96f89

Example Academic Graph API query:

https://api.semanticscholar.org/graph/v1/paper/ebdbded60f48131ed7ba73807c3c086993a96f89?fields=url,year,authors,externalIds,abstract,venue,references,influentialCitationCount,fieldsOfStudy

Example based on: CLI_cURL_Papers_with_Key example.

Example response

S2 API Tutorial

S2 Academic Graph - Details about a paper - Sample Response - 200 OK

I filled out the S2 API key request form on 2024-12-21.

Resources

similar projects:

Directory structure

.
├── LICENSE
├── README.md
├── arxivbot
│   ├── __init__.py
│   ├── constants.py
│   ├── credentials.env
│   ├── credentials_template.env
│   ├── find_arxiv_links.py
│   ├── ieee_api.py
│   ├── ieee_scrape.py
│   ├── migrate_notion_obsidian.py
│   ├── notion_importer.py
│   ├── obsidian_importer.py
│   └── utils.py
├── docs
├── notion-sdk-py-examples
│   ├── README.md
│   ├── assets
│   │   └── notion-api-client-docs-map.jpg
│   ├── authenication.py
│   ├── db_read.py
│   ├── db_write.py
│   ├── page_read.py
│   └── page_write.py
├── requirements.txt
└── tests
    └── example_inputs
        └── ieee
            └── 9381661.html

8 directories, 22 files

About

A terse command-line tool for importing papers into Obsidian (and Notion) from arXiv

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published