twitter_ebooks 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -3
- data/lib/twitter_ebooks/archive.rb +1 -1
- data/lib/twitter_ebooks/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# twitter\_ebooks 2.1.
|
1
|
+
# twitter\_ebooks 2.1.6
|
2
2
|
|
3
3
|
Rewrite of my twitter\_ebooks code. While the original was solely a tweeting Markov generator, this framework helps you build any kind of interactive twitterbot which responds to mentions/DMs.
|
4
4
|
|
@@ -54,12 +54,14 @@ end
|
|
54
54
|
|
55
55
|
Bots defined like this can be spawned by executing `run.rb` in the same directory, and will operate together in a single eventmachine loop. The easiest way to run bots in a semi-permanent fashion is with [Heroku](https://www.heroku.com); just make an app, push the bot repository to it, enable a worker process in the web interface and it ought to chug along merrily forever.
|
56
56
|
|
57
|
+
The underlying [tweetstream](https://github.com/tweetstream/tweetstream) and [twitter gem](https://github.com/sferik/twitter) client objects can be accessed at `bot.stream` and `bot.twitter` respectively.
|
58
|
+
|
57
59
|
## Archiving accounts
|
58
60
|
|
59
61
|
twitter\_ebooks comes with a syncing tool to download and then incrementally update a local json archive of a user's tweets.
|
60
62
|
|
61
63
|
``` zsh
|
62
|
-
➜ ebooks
|
64
|
+
➜ ebooks archive 0xabad1dea corpus/0xabad1dea.json
|
63
65
|
Currently 20209 tweets for 0xabad1dea
|
64
66
|
Received 67 new tweets
|
65
67
|
```
|
@@ -71,7 +73,7 @@ The first time you'll run this, it'll ask for auth details to connect with. Due
|
|
71
73
|
In order to use the included text modeling, you'll first need to preprocess your archive into a more efficient form:
|
72
74
|
|
73
75
|
``` zsh
|
74
|
-
➜ ebooks
|
76
|
+
➜ ebooks consume corpus/0xabad1dea.json
|
75
77
|
Reading json corpus from corpus/0xabad1dea.json
|
76
78
|
Removing commented lines and sorting mentions
|
77
79
|
Segmenting text into sentences
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_ebooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|