Skip to content

cxzhou35/notion-arxiv-enhancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notion arXiv Enhancer

This project is my attempt at automating work in Notion. There may be some bugs, but if it's helpful to you, please give me a star. ⭐️

If you meet any problems during use or would like to suggest new features to enhance this project, please feel free to create an issue. 😁

Table of contents

About this project

The purpose of this project is to automate the acquisition of related information about papers on arXiv and integrate it into Notion.

Features

  • The input format is concise, efficient, and fast.
  • Update the author information of each page automatically.
  • 💥 Add a new feature according to this issue. Now we can automatically fetch updated arXiv paper links daily and cache them for download locally, just add a parameter auto_fetch when running the script. The arXiv search options can be found in config.yaml.

Install & Use

  1. Install the necessary Python modules.
pip install -r requirements.txt
  1. Create a new Notion integration in this page, once you have created your integration, you will be given an integration token. This token is used to authenticate your requests to the Notion API. You can also change the token Capabilities as you like. screenshot1

  2. Add the token saved in Step 2. to config.yaml, the token should be in the NOTION_TOKEN field, please do not remove the double quotes, as this is a string.

  3. Get the database id from Notion, you can get the id follow the instruction below: screenshot2 Then copy the link to anywhere you like, the string end up with '?v=' is the database id we need. Lastly, connect the database to the Notion integration created in Step 1.(This is very important, otherwise we cannot access the database.) screenshot3

  4. Add the database id copied in Step 4. to config.yaml, the database id should be in the DATABASE_ID field, please do not remove the double quotes, as this is a string.

  5. Add the database property name into the config.yaml, add the property required(Title, URL, Author) in the PROPERTY field.

So finally your config file should be like this:

NOTION_TOKEN: "xxx"
DATABASE_ID: "xxx"
PROPERTY: # change the property name according to your database.
  title: "论文Title"
  url: "论文链接"
  author: "论文作者"
  1. If you want to automatically fetch the arXiv paper, just run the command below:
python main.py --auto_fetch

You can also check the arXiv options in config.yaml.

Demo

demo

Acknowledgment

💗 Thanks for these great works:

FAQ

Q: Error - arxiv.arxiv.HTTPError: Page request resulted in HTTP 502

A: A non-200 status encountered while fetching a page of results, just retry it.

Q: Error - httpx.ConnectError: EOF occurred in violation of protocol

A: This error is caused by the proxier, check out your proxier and retry it.

About

This project is my attempt at automating work in Notion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages