Skip to content

Instantly share code, notes, and snippets.

@tamouse
Created July 15, 2017 06:53
Embed
What would you like to do?
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