Skip to content

Instantly share code, notes, and snippets.

@danchoi
Created March 20, 2009 16:14
Show Gist options
  • Save danchoi/82420 to your computer and use it in GitHub Desktop.
Save danchoi/82420 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
url = ARGV.shift
puts "fetching #{url}"
target = "news.txt" # this file collects all the content
`lynx -dump -nomargins -nonumbers "#{url}" >> #{target}`
puts "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment