Home

Awesome

Malware-collector

Requirements

How to use:

python producer.py -m stream|history -t <#trending_topic> | -l (list trends)

Example

The following command lists top 10 trending topics in Brazil

python producer.py -l
1 - #DiaMundialRBD
2 - Jack Gilinsky
3 - #EuNaVida
4 - #WhinderssonNoAltasHoras
5 - #UFC192
6 - #AHSRedCarpet
7 - Osório
8 - MARA NOSSO ORGULHO
9 - Cormier
10 - MEU PEITO TE CHAMA LS

Once we have top ten tending topics list, we choose one for store on DB (mongo). Below, I chose the number 5 (#UFC192):

python producer.py -m stream -t 5
Streaming mode for trending topic: #UFC192
Inserted: 1
Inserted: 2
Inserted: 3
Inserted: 4
Inserted: 5
Inserted: 6

At this point, tweets related to #UFC195 are stored on MongoDB. I suggest you use tools like robomongo for visualizing data.