easier way to grab the page title, works for gizmodo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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