[Intelmq-dev] using the intelmq twitter bot

Salehi Ghamsari, Majid majid.salehi.ghamsari at fokus.fraunhofer.de
Tue Jul 17 09:54:52 CEST 2018


Hi,

ok I have found the solution, to get the tweets https://twitter.com/CVEnew
>target_timelines: screen_names of twitter accounts to be followed
must be CVEnew and not the url itself.

Regards majid

[cid:image001.png at 01D41DB4.346DD900]


From: Intelmq-dev [mailto:intelmq-dev-bounces at lists.cert.at] On Behalf Of Salehi Ghamsari, Majid
Sent: Montag, 16. Juli 2018 16:16
To: intelmq-dev at lists.cert.at
Subject: [Intelmq-dev] using the intelmq twitter bot

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 <https://twitter.com/CVEnew%20> ",
            "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/20180717/a9855320/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 52485 bytes
Desc: image001.png
URL: <http://lists.cert.at/pipermail/intelmq-dev/attachments/20180717/a9855320/attachment-0001.png>


More information about the Intelmq-dev mailing list