All Projects → NolanZhao → News_feed

NolanZhao / News_feed

Licence: mit
🐨实时监控1000家中国企业的新闻动态

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to News feed

Signature algorithm
各种App、小程序、网站的请求签名或加密算法。 现已有:自如、小红书、蛋壳公寓、luckin coffee(瑞幸咖啡)、bangkokair(曼谷航空)
Stars: ✭ 380 (-22.61%)
Mutual labels:  crawler
Comicbook
本项目不再维护,详情可加群了解 https://t.me/onecomicbook
Stars: ✭ 429 (-12.63%)
Mutual labels:  crawler
Learnpython
Python的基础练习代码与各种爬虫代码
Stars: ✭ 451 (-8.15%)
Mutual labels:  crawler
Mmjpg
👩 美女写真套图爬虫(一)
Stars: ✭ 398 (-18.94%)
Mutual labels:  crawler
Dotcommon
What do people have in their dotfiles?
Stars: ✭ 418 (-14.87%)
Mutual labels:  crawler
Weibo Analyst
Social media (Weibo) comments analyzing toolbox in Chinese 微博评论分析工具, 实现功能: 1.微博评论数据爬取; 2.分词与关键词提取; 3.词云与词频统计; 4.情感分析; 5.主题聚类
Stars: ✭ 430 (-12.42%)
Mutual labels:  crawler
Netease Music Cracker
🎵 将可下载的网易云音乐的缓存文件转换为 MP3 文件
Stars: ✭ 373 (-24.03%)
Mutual labels:  crawler
Scrapple
A framework for creating semi-automatic web content extractors
Stars: ✭ 464 (-5.5%)
Mutual labels:  crawler
Iclr2020 Openreviewdata
Script that crawls meta data from ICLR OpenReview webpage. Tutorials on installing and using Selenium and ChromeDriver on Ubuntu.
Stars: ✭ 426 (-13.24%)
Mutual labels:  crawler
Bookcorpus
Crawl BookCorpus
Stars: ✭ 443 (-9.78%)
Mutual labels:  crawler
Gosint
OSINT Swiss Army Knife
Stars: ✭ 401 (-18.33%)
Mutual labels:  crawler
Opensearchserver
Open-source Enterprise Grade Search Engine Software
Stars: ✭ 408 (-16.9%)
Mutual labels:  crawler
Html2article
Html网页正文提取
Stars: ✭ 441 (-10.18%)
Mutual labels:  crawler
Bilili
🍻 bilibili video (including bangumi) and danmaku downloader | B站视频(含番剧)、弹幕下载器
Stars: ✭ 379 (-22.81%)
Mutual labels:  crawler
Scrapedin
LinkedIn Scraper (currently working 2020)
Stars: ✭ 453 (-7.74%)
Mutual labels:  crawler
Iclr2019 Openreviewdata
Script that crawls meta data from ICLR OpenReview webpage. Tutorials on installing and using Selenium and ChromeDriver on Ubuntu.
Stars: ✭ 376 (-23.42%)
Mutual labels:  crawler
Runoob Pdf
爬取菜鸟教程网站并转PDF__python_crawer_by_chrome
Stars: ✭ 430 (-12.42%)
Mutual labels:  crawler
Ferret
Declarative web scraping
Stars: ✭ 4,837 (+885.13%)
Mutual labels:  crawler
Nintendo Switch Eshop
Crawler for Nintendo Switch eShop
Stars: ✭ 463 (-5.7%)
Mutual labels:  crawler
Crawly
Crawly, a high-level web crawling & scraping framework for Elixir.
Stars: ✭ 440 (-10.39%)
Mutual labels:  crawler

中国企业新闻监控

简介: 此项目可监控近千家中国企业的官方网站的新闻动态,如有更新,系统能在最短2分钟之内通过邮件发送更新的标题和链接。 更新的信息流也可通过浏览器查看。监控的公司和站点可以添加删除。

原理: 定期抓取网站html, 使用difflib比对新旧页面源码,发现增加的部分,提取url和text,过滤筛选,保存MySQL数据库。 定期把更新的url和text,通过邮件发送给订阅者。

环境准备

系统需安装MySQL和Redis数据库以及Python3. 建议安装Python3虚拟环境之后运行。

安装依赖包

pip install -r requirements.txt

Web运行

创建MySQL数据库

连接MySQL,执行

mysql> create database news_feed default charset utf8;

创建表

python models.py

运行

python app.py

浏览器打开 http://127.0.0.1:8888/

  1. 用户
  1. 公司、站点管理

在公司栏可以查看公司列表和添加公司,点击公司进入公司Profile页可以编辑

导入收集的公司信息

cd utils/ ; python xlsx_reader.py
  1. 抓取日志 http://127.0.0.1:8888/log

  2. 信息流

资讯栏包括全部信息,海外栏是包含关键词的企业出海信息

可以在关键词栏管理关键词。

将国家和地区名导入数据库

cd utils/ ; python keywords_reader.py

抓取控制

  1. 开启celery任务队列(需要先安装redis)

在系统根目录执行

celery -A info_engine worker -c 20 -l info
  1. 运行爬虫
python info_engine.py

抓取频率, Celery参数可在config.py文件设置

发送邮件

需要在config设置EMAIL和SEND_MAIL_INTERVAL参数

启动定时发邮件程序

python mail_bot.py

手动发邮件可以执行:

cd utils/ ; python send_email.py
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].