TweetFeed_code
TweetFeed_code copied to clipboard
Source code used at TweetFeed.live
TweetFeed (code)
Source code used at TweetFeed
Web version at TweetFeed.live
Files
- tweetfeed.py → Main script.
- tags.py → Tags being searched on Twitter.
- whitelist.py → Lists of whitelisted IOCs.
- secrets.py → API keys.
- output/ → Directory with output files.
Installation
- Update your API keys in the secrets.py file. (To get API keys go to https://developer.twitter.com/apps)
- Install requirements
$ pip3 install -r requirements.txt
- Execute tweetfeed.py
$ python3 tweetfeed.py
Example output

Some comments
This is the core part of the code at TweetFeed, I have tried to keep it as simple as possible. In the official code that I use I added some more regex, filters and whitelists as folks on Twitter use many formats to publish IOCs.
Any Issue, PR or Feedback is welcome!
Author
Give a Star! :star:
If you like the project, please consider giving it a star!