- Timestamp:
- 09/09/08 02:09:23 (2 months ago)
- Files:
-
- 1 modified
-
lang/ruby/robot-twitter/trunk/robot-twitter.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/robot-twitter/trunk/robot-twitter.rb
r18535 r19026 35 35 page.search('td.content').each do |entry| 36 36 name = entry.search('a').first.inner_text 37 content = CGI.unescapeHTML(entry.search('span.entry-content').first.inner_html).gsub(/^\s */, '')37 content = CGI.unescapeHTML(entry.search('span.entry-content').first.inner_html).gsub(/^\s+/, '') 38 38 39 39 # リンクは ... で省略されるので url に置き換える 40 content = content.gsub( /<a href="(\S*)"\s*rel="\S*".*>.*<\/a>/, '\1')40 content = content.gsub(%r{<a\s+href="([^"]*)"\s+rel="[^"]*"[^>]*>.*</a>}m, '\1') 41 41 42 42 # @username のリンクを外す 43 content = content.gsub( /<a href="\S*".*>(.*)<\/a>/, '\1')43 content = content.gsub(%r{<a\s+href="[^"]*"[^>]*>(.*)</a>}m, '\1') 44 44 45 45 meta = entry.search('a[@class="entry-date"]').first
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)