feature: 增加kafka writer,支持向kafka实时推送爬取的数据#265
Merged
dataabc merged 2 commits intodataabc:masterfrom Dec 4, 2020
Merged
Conversation
fix: KafkaWriter日志错误 Co-authored-by: Chen Lei <chillychen1991@gmail.com>
Contributor
Author
哈哈,谢谢提醒,忘记改了 |
Owner
|
已merge。 感谢贡献代码,非常实用的改动,赞,再次感谢 |
Contributor
Author
|
不客气哈哈!尽绵薄之力 |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
由于我想做一个实时爬取微博消息主动推送的东西,所以增加了一个KafkaWriter,可以向消息队列写入数据,实时推送,配置内容如下:
{ "kafka_config": { "bootstrap-server": "127.0.0.1:9092", #kafka地址, 集群用逗号分隔 "weibo_topics": ["spider_weibo"], # 推送微博消息的topic "user_topics": ["spider_weibo"] # 推送用户个人信息的topic } }个人能力有限,不足之处还望提出来,联系邮件: windlively@live.cn,望采纳。