![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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.
$ pip3 install notion-news-crawler
Library | Supported Version |
---|---|
Notion News Crawler | 3.8, 3.9, 3.10, 3.11, 3.12 |
from notion_news_crawler import NaverAPI, UploadToDataBase, ResetDatabase
if __name__=='__main__':
reset_database = ResetDatabase()
reset_database.delete_all_pages()
for subject in ['Economy', 'Science', 'Society', 'Politics', 'Stock']:
naver_api = NaverAPI(subject, 100)
news_data = naver_api.parse_data(naver_api.get_news())
upload_to_database = UploadToDataBase(news_data)
upload_to_database.add_to_notion()
To use this library, Notion and Naver API are required.
Just enter the two API Key values in the environment variables.
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'
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.
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"
}
FAQs
Notion news mecro
We found that notion-news-crawler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.