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. 😁
The purpose of this project is to automate the acquisition of related information about papers on arXiv and integrate it into Notion.
auto_fetch
when running the script. The arXiv search options can be found in config.yaml.Install the necessary Python modules.
pip install -r requirements.txt
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.
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.
Get the database id from Notion, you can get the id follow the instruction below: 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.)
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.
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: "论文作者"
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.
💗 Thanks for these great works:
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.