Skip to main content

Notion news mecro

Project description

Notion-News-Crawler

Notion News Crawler is a Python library that collects news from Notion and uploads it to a database.

News can be collected using Naver Search API, so only Naver and Notion API keys can be used by putting them in environment variables.

Table of Contents

  1. Install
  2. Supported Python Version
  3. APIs
  4. Result

Install

$ pip3 install notion-news-crawler

Supported Python version

Library Supported Version
Notion News Crawler 3.8, 3.9, 3.10, 3.11, 3.12

APIs

To use this library, Notion and Naver API are required.

Just enter the two API Key values ​​in the environment variables.

Environment parameters

You can create an environment variable .env file and use it by entering the following.

.env file format

# Notion
NOTION_TOKEN='YOUR NOTION TOKEN'
NOTION_DATABASE_ID='YOUR NOTION DATABASE ID'

# Naver
X_NAVER_CLIENT_ID='YOUR NAVER CLIENT ID'
X_NAVER_SECRET='YOUR NAVER SECRET KEY'

Notion API

The Notion API can be found at: Notion API
Enter the Notion application token value in the environment variable. Create a Notion application, register the Notion application in the database you will use, and then use it.

Naver API

You can create a Naver application and obtain the API key value.
More detail on NAVER API docs

The Naver API result values ​​are as follows, and when uploading to Notion, you can refine and use the data as you wish.

{
    "title": "article title",
    "originallink": "original news link",
    "link": "naver news link",
    "description": "article description",
    "pubDate": "published date"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notion-news-crawler-0.0.8.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notion_news_crawler-0.0.8-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file notion-news-crawler-0.0.8.tar.gz.

File metadata

  • Download URL: notion-news-crawler-0.0.8.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for notion-news-crawler-0.0.8.tar.gz
Algorithm Hash digest
SHA256 e8cc411567843161eba75cf4e3944761cf091f4591870ca32fb81fa8f6577a48
MD5 127401d4d25ba018b3f33685d7a639bf
BLAKE2b-256 d7fa73680055b76de3c137cdb24f5ee51ecfd47190798b5e1858c6f39faab779

See more details on using hashes here.

File details

Details for the file notion_news_crawler-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for notion_news_crawler-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b2d60233beb44b6cabf94ab0a5da78472bd29ce8c7d83f3baa2fe2f28f4283c9
MD5 381ee180b3738357ac30155ba897ed6e
BLAKE2b-256 59ce76bd265c29338d8676a982e2cf9bd8cb928055d811118101f0e69deb34fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page