Skip to content

Instantly share code, notes, and snippets.

@tamouse
Created July 15, 2017 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamouse/50ac06aaa87d49ce4b0dd9f22ed83bee to your computer and use it in GitHub Desktop.
Save tamouse/50ac06aaa87d49ce4b0dd9f22ed83bee to your computer and use it in GitHub Desktop.
easier way to grab the page title, works for gizmodo
$ echo 'http://gizmodo.com/scientists-push-back-against-booming-genetic-pseudoscie-1796923059' |\
ruby -rnokogiri -ropen-uri -ne 'puts Nokogiri::HTML(open($_.chomp)).search("//title").text'
Scientists Push Back Against Booming Genetic Pseudoscience Market
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment