This script is used to fetch job positions from various websites and save them to Notion.
GitHub Action is recommended to run this script periodically.
To use GitHub Action, you need to fork this repository and enable GitHub Action in the forked repository.
Add a new Database in Notion with the following headers:
Name - Title
Company - Select
Date - Date
Link - URL
Status - Status
| - To-do: Draft
| - In progress: Set Aside
| - Complete: Submitted, Won't Apply
You can find the Database ID in the URL of the Database according to this documentation.
Also, you need to add a new Integration in Notion and get the Internal Integration Secret according to this documentation.
Add the following secrets in the forked repository:
NOTION_TOKEN=<YOUR_INTEGRATION_INTEGRATION_SECRET>
DATABASE_ID=<YOUR_NOTION_DATABASE_ID>
TELEGRAM_BOT_TOKEN=<OPTIONAL_TELEGRAM_BOT_TOKEN>
TELEGRAM_CHAT_ID=<OPTIONAL_TELEGRAM_CHAT_ID>
Telegram is used to send notifications when the script fails and is optional.
If you configure GitHub Action correctly, the script will run automatically, and you can see new jobs in your notion database.
If you want to run the script locally, you need to also add the above secrets in the .env
file.
Then, run the following commands:
yarn install
yarn start