You give us your text, we give you a quick link pointing to it. You keep your formatting.
quick snip
|
custom snip
|
about
|
¿español?
|
Link Paste
|
account/login
Tweet
http://textsnip.com/a4f7ca/ruby
Make Links Clickable
Report Terms Violation
Change View:
plain text
html
css
xml
javascript
php
sql
ruby
python
csharp
vb
java
require 'open-uri' blogs_file = File.new("travel_blogs.csv", 'w') # Var declarations last_three_lines = ["", "", ""] count = 0 for x in 1..1 doc = open("http://technorati.com/blogs/directory/living/travel/page-#{x}", 'User-Agent' => "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13") while line=doc.gets last_three_lines << line last_three_lines.delete_at(0) # Matches a listing if line.index("
")[1].split("<")[0] blogs_file.puts count.to_s + ", " + blog_title + ", " + url end end sleep(10) end