Created
July 15, 2017 06:53
-
-
Save tamouse/50ac06aaa87d49ce4b0dd9f22ed83bee to your computer and use it in GitHub Desktop.
easier way to grab the page title, works for gizmodo
This file contains hidden or 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