Python scripts for adding data about books to Notion library
pip install beautifulsoup4
pip install python-dotenv
pip install requests
pip install selenium
Download chromedriver.exe
and add it to path
- Create a Notion Integration
- Copy Internal Integration Secret to
NOTION_TOKEN=secret_...
- Add the Integration to your Notion Database (go to
...
and+ Add connections
) - From URL copy part in between
notion.so/
and?v=
toDATABASE_ID=
- Create API key at Google Keys & Credentials and copy it to
GOOGLE_API_KEY=
You can change which language file to use via LANGUAGE=
(Only implemented one is "en")
You can change which sources will be used for data retrieval wia SOURCE_...=
If you are using VS Code, you can use the configuration from launch.json
.
Otherwise you can run it from terminal python -m app.src.main