Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bertrandom/thisisaaronbot
twitter bot markov chain of @thisisaaronland
https://github.com/bertrandom/thisisaaronbot
Last synced: 23 days ago
JSON representation
twitter bot markov chain of @thisisaaronland
- Host: GitHub
- URL: https://github.com/bertrandom/thisisaaronbot
- Owner: bertrandom
- Created: 2013-09-13T08:43:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-15T07:08:35.000Z (over 11 years ago)
- Last Synced: 2023-04-17T14:00:30.017Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://twitter.com/thisisaaronbot
- Size: 313 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## twitter bot markov chain of @thisisaaronland
[https://twitter.com/thisisaaronbot](https://twitter.com/thisisaaronbot)
### Seed data
Tweets are extracted using the t twitter client:
t timeline thisisaaronland -n 4000 -c > thisisaaronland.csv
Tweets with retweets, mentions, hashtags, and URLs are filtered:
cat thisisaaronland.csv | grep -v "http://" | grep -v "RT " | grep -v "@" | grep -v "https://" | grep -v "#" > filtered.csv
Then we parse to get the raw tweets, removing quotes:node parse > seed.txt
### Installation
Install libraries
npm install
Create a file called secrets.json with the Twitter credentials:
{
"consumer_key": "xxx",
"consumer_secret": "xxx",
"access_token_key": "xxx",
"access_token_secret": "xxx"
}
Cronjob runs every six hours:0 0,6,12,18 * * * /usr/bin/node /var/www/thisisaaronbot/app.js >> /var/www/thisisaaronbot/tweets.log 2>&1