
Project
TLDR Scrapper and Sync Data to Notion
A Nodejs and cheerio news scraper that scrapes the most recent tldrtech page and returns Programming and Github information, then uploads that data into the notion database
How does it works?
It scrapes data from tldr.tech site and uploads to notion
Prequisites
To get started, you'll need a notion account, a notion page, and a craete database.
Getting NOTION_API_KEY and DATABASE_ID
-
Click on New page
- Click on table
- Click on New database
- Create new databse
- Check the url and make a note of Databse ID
Take note of this after / and before ? mark this is your DATABASE_ID
- Click on New integration
- Type your integration name
- Click on Submit
- Click on show
Take a note of this screate key it is your notion key
- Click on Share
- Click on invite box
- Click on your integration name and click on Invite
16.Create .env
file into the root directory
NOTION_API_KEY='<your_notion_api_key>' DATABASE_ID='<your_database_id>'
Installation
-
Clone the Repo
https://github.com/amrohan/tldr-tech-scraper
-
Install packages
yarn install
-
Run the script
yarn dev
-
Make your desired modifications and rerun the script.
Hosting
Use your preferred hosting service to deploy this scrapper.
Just add environment variables to your favorite hosting service.
Apr 17 2022