[Intelmq-dev] using the intelmq twitter bot
Salehi Ghamsari, Majid
majid.salehi.ghamsari at fokus.fraunhofer.de
Mon Jul 16 16:16:07 CEST 2018
Hi there,
I try to get the CVEs from this twitter page https://twitter.com/CVEnew but i get an exception that
“that page does not exist”
>target_timelines: screen_names of twitter accounts to be followed
What should I put for target_timelines parameter?
I do not know what I am missing.
In the documentation we have to put for each bot parameters some examples input for better understanding the parameters.
https://github.com/certtools/intelmq/blob/develop/docs/Bots.md#twitter
Thank you for your help
Majid Salehi Ghamsari
Digital Public Services (DPS)
Fraunhofer Institute for Open Communication Systems
Kaiserin-Augusta-Allee 31, 10589 Berlin, Germany
Email: majid.salehi.ghamsari at fokus.fraunhofer.de<mailto:majid.salehi.ghamsari at fokus.fraunhofer.de>
Office: +49 (0) 30 3463 7118
Skype: salehimajid
WEB: fokus.fraunhofer.de
"cve-twitter-collector": {
"parameters": {
"feed": "Twitter",
"target_timelines": "https://twitter.com/CVEnew ",
"tweet_count": 10,
"timelimit": 60000,
"include_rts": false,
"exclude_replies": true,
"follow_urls": "",
"consumer_key": "myconsumer_key ",
"consumer_secret": "myconsumer_secret ",
"access_token_key": "myaccess_token_key ",
"access_token_secret": "myaccess_token_secret "
},
"name": "Twitter",
"group": "Collector",
"module": "intelmq.bots.collectors.twitter.collector_twitter",
"description": "Collects tweets from target_timelines. Maximum number of tweet_count from each timeline and up to timelimit back in time.",
"enabled": true,
"run_mode": "continuous"
}
Traceback (most recent call last):
File "/opt/dev_intelmq/intelmq/lib/bot.py", line 167, in start
self.process()
File "/opt/dev_intelmq/intelmq/bots/collectors/twitter/collector_twitter.py", line 94, in process
exclude_replies=self.exclude_replies)
File "/usr/local/lib/python3.6/dist-packages/twitter/api.py", line 810, in GetUserTimeline
data = self._ParseAndCheckTwitter(resp.content.decode('utf-8'))
File "/usr/local/lib/python3.6/dist-packages/twitter/api.py", line 4890, in _ParseAndCheckTwitter
self._CheckForTwitterError(data)
File "/usr/local/lib/python3.6/dist-packages/twitter/api.py", line 4910, in _CheckForTwitterError
raise TwitterError(data['errors'])
twitter.error.TwitterError: [{'code': 34, 'message': 'Sorry, that page does not exist.'}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cert.at/pipermail/intelmq-dev/attachments/20180716/4c5d1574/attachment.html>
More information about the Intelmq-dev
mailing list