
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
这是一个自动抓取RSS新闻源并存储到SQLite数据库的工具,支持:
pip install rss-news-crawler```
## 使用方法
from rss_news_crawler import NewsCrawler
crawler = NewsCrawler( db_name='news.db', # SQLite数据库路径 log_file='news.log', # 日志文件路径 rss_feeds_file='rss_feeds.txt', # RSS源文件路径,在RSS文件不存在或为空时将使用默认RSS源 )
crawler.fetch_and_store_news()```
每行一个RSS源的URL,例如:
https://www.example.com/rss.xml
https://www.example.com/rss2.xml
id INTEGER PRIMARY KEY AUTOINCREMENT,
publish_time DATETIME NOT NULL,
crawl_time DATETIME NOT NULL,
title TEXT NOT NULL,
content BLOB NOT NULL,
url TEXT NOT NULL UNIQUE
)
Content字段存储的是经过压缩和去重的新闻内容,使用feed_handler.compress_content()进行压缩
from rss_news_crawler import NewsCrawler
crawler = NewsCrawler(
db_name='news.db',
log_file='news.log',
rss_feeds_file='rss_feeds.txt',
)
crawler.fetch_and_store_news()
FAQs
RSS新闻爬虫工具,自动抓取并存储RSS源的最新新闻
We found that rss-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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.