flock-botnet/README.md
README.mdRaw
1# projectFlock
2
3a twitter botnet with bots replying tweets with text generated by Markov chains
4
5##### generating text with Markov chains
6The algorithm calculates the probabilities of Markov chains, analyzing a considerable amount of text, for the examples, I've done it with the book "The Critique of Pure Reason", by Immanuel Kant (http://www.gutenberg.org/cache/epub/4280/pg4280.txt).
7
8#### Replying tweets with Markov chains
9When the botnet is up working, the bots start streaming all the twitter new tweets containing the configured keywords. Each bot takes a tweet, analyzes the containing words, and generates a reply using the Markov chains previously calculated, and posts the tweet as reply.
10
11In the following examples, the bots ("andreimarkov", "dodecahedron", "projectNSA") are replying some people.
12
13
14
15
16
17
18
19
20
21
22configuration file example (flockConfig.json):
23```
24[{
25 "title": "account1",
26 "consumer_key": "xxxxxxxxxxxxx",
27 "consumer_secret": "xxxxxxxxxxxxx",
28 "access_token_key": "xxxxxxxxxxxxx",
29 "access_token_secret": "xxxxxxxxxxxxx"
30 },
31 {
32 "title": "account2",
33 "consumer_key": "xxxxxxxxxxxxx",
34 "consumer_secret": "xxxxxxxxxxxxx",
35 "access_token_key": "xxxxxxxxxxxxx",
36 "access_token_secret": "xxxxxxxxxxxxx"
37 },
38 {
39 "title": "account3",
40 "consumer_key": "xxxxxxxxxxxxx",
41 "consumer_secret": "xxxxxxxxxxxxx",
42 "access_token_key": "xxxxxxxxxxxxx",
43 "access_token_secret": "xxxxxxxxxxxxx"
44 }
45]
46
47```