Skip to content

Comments

feature: 增加kafka writer,支持向kafka实时推送爬取的数据#265

Merged
dataabc merged 2 commits intodataabc:masterfrom
windlively:master
Dec 4, 2020
Merged

feature: 增加kafka writer,支持向kafka实时推送爬取的数据#265
dataabc merged 2 commits intodataabc:masterfrom
windlively:master

Conversation

@windlively
Copy link
Contributor

由于我想做一个实时爬取微博消息主动推送的东西,所以增加了一个KafkaWriter,可以向消息队列写入数据,实时推送,配置内容如下:

{
"kafka_config": {
        "bootstrap-server": "127.0.0.1:9092", #kafka地址, 集群用逗号分隔
        "weibo_topics": ["spider_weibo"], # 推送微博消息的topic
        "user_topics": ["spider_weibo"]  # 推送用户个人信息的topic
    }
}

个人能力有限,不足之处还望提出来,联系邮件: windlively@live.cn,望采纳。

Copy link
Owner

@dataabc dataabc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是改成kafka_writer更好?

fix: KafkaWriter日志错误

Co-authored-by: Chen Lei <chillychen1991@gmail.com>
@windlively
Copy link
Contributor Author

这里是不是改成kafka_writer更好?

哈哈,谢谢提醒,忘记改了

@dataabc dataabc merged commit 5e5e086 into dataabc:master Dec 4, 2020
@dataabc
Copy link
Owner

dataabc commented Dec 4, 2020

已merge。

感谢贡献代码,非常实用的改动,赞,再次感谢

@windlively
Copy link
Contributor Author

不客气哈哈!尽绵薄之力

@dataabc dataabc mentioned this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants