public
Description: Ruby script that takes data from the BBC website and sends it to twitter/pollen_london
Homepage: http://twitter.com/pollen_london
Clone URL: git://github.com/snowblink/pollen-london.git
[#2] Moving twitter login details out of main script
snowblink (author)
Fri May 16 09:32:59 -0700 2008
commit  929cab2618b27d7987623261575a5370de537fdf
tree    ce957a69e887bf0f5f2033d56615e373a0b0aa79
parent  4b889194723a552284c180f2798dd2fa0ddabacf
...
12
13
14
 
15
16
 
 
 
17
18
19
...
12
13
14
15
16
 
17
18
19
20
21
22
0
@@ -12,8 +12,11 @@ require 'open-uri'
0
 gem 'twitter4r'
0
 require 'twitter'
0
 require 'hpricot'
0
+require 'yaml'
0
 
0
-twitter = Twitter::Client.new(:login => 'pollen_london', :password => 'secrety password')
0
+twitter_config = YAML::load_file('twitter_config.yml')
0
+
0
+twitter = Twitter::Client.new(twitter_config)
0
 
0
 # where I live
0
 PLACE = "London"

Comments

    No one has commented yet.