Changeset 3411
- Timestamp:
- 12/21/07 17:50:25 (5 years ago)
- Files:
-
- 1 modified
-
lang/ruby/misc/tumblr_autofollow.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/misc/tumblr_autofollow.rb
r3329 r3411 74 74 end 75 75 end 76 ajax_links = Array.new 77 (page/"a").each do |link| 78 if link.inner_text =~ /other people/ 79 ajax_links.push("http://www.tumblr.com"+$1) if link.to_html =~ /'(\/dashboard\/notes\/.+\/.+)'/ 80 end 81 end 82 unless ajax_links.first.nil? 83 id=nil 84 ajax_links.each do |link| 85 page = agent.post(link) 86 page.links.each do |id| 87 if id.href =~ /^http:\/\/[0-9a-zA-Z_-]+\.tumblr\.com\/$/ 88 rebloggers.push id.text unless id.text.empty? 89 end 90 end 91 end 92 end 93 rebloggers.uniq! 76 94 auto_following_list.concat rebloggers - followings 77 95 end … … 97 115 98 116 #=== closing phase ===# 99 # url = "http://www.tumblr.com/logout"100 # p "logout www.tumblr.com"101 # agent.get(url, REFERER_PAGE)102 #=== endclosing phase ===#117 #url = "http://www.tumblr.com/logout" 118 #p "logout www.tumblr.com" 119 #agent.get(url, REFERER_PAGE) 120 #=== closing phase ===# 103 121 104 122
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)