ruby - private method `split' called for nil:NilClass (NoMethodError) -
I am trying to use domaintracks with Nokagiri and coming up with a holdup. Being relatively new to Ruby, I tried to distinguish every syntax on the function on the left side of the domain. I can do a href to parse properly. They print during the "puts" command, but when I do not launch domatics code problems:
'rubygems' is required 'domaintracks' is required 'anonymous' Requires 'Open-Yuri' to be required 'Doctor' Doctor = Doctory :: HTML (open ("http://www.cnn.com")) doc.xpath ('// a / @ href' ). Every do Node | Linkage = Node. Link to the link URL = Domatics. From (Linkage) Print url.domain Print url.public_suffix end
Anyone have any ideas on this? I think this is just a syntax issue or maybe I can not use the Domainetics function where I am using it?
This seemed to be a nose on some improperly formatted URL.
Comments
Post a Comment