shokai / bot-ahokai (http://twitter.com/ahokai)
twitter bot "ahokai". The license is public domain.
Clone this repository (size: 94.1 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/shokai/bot-ahokai/
| commit 96: | 39c0c5321618 |
| parent 95: | c765b5bdd6e8 |
| branch: | default |
fix store
Sho Hashimoto /
shokai
11 months ago
11 months ago
Changed (Δ64 bytes):
raw changeset »
store.rb (5 lines added, 3 lines removed)
| … | … | @@ -28,11 +28,13 @@ for page in first..last |
28 |
28 |
uri = "http://twitter.com/statuses/user_timeline/#{user}.atom?page=#{page}" |
29 |
29 |
begin |
30 |
30 |
if(config["user"] != nil && config["pass"] != nil) |
31 |
p |
|
31 |
puts 'pass' |
|
32 |
feed = FeedNormalizer::FeedNormalizer.parse open(uri, :http_basic_authentication => [config["user"], config["pass"]]) |
|
32 |
33 |
else |
33 |
p |
|
34 |
puts 'no pass' |
|
35 |
feed = FeedNormalizer::FeedNormalizer.parse open(uri) |
|
34 |
36 |
end |
35 |
|
|
37 |
||
36 |
38 |
rescue |
37 |
39 |
puts "feed fetch error! page:#{page}" |
38 |
40 |
errors.push(page) |
