{"action":"created","issue":{"url":"https://api.github.com/repos/weppos/whois/issues/546","repository_url":"https://api.github.com/repos/weppos/whois","labels_url":"https://api.github.com/repos/weppos/whois/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/weppos/whois/issues/546/comments","events_url":"https://api.github.com/repos/weppos/whois/issues/546/events","html_url":"https://github.com/weppos/whois/issues/546","id":200955520,"number":546,"title":"Parsing raw text containing whois info","user":{"login":"ciokan","id":474948,"avatar_url":"https://avatars.githubusercontent.com/u/474948?v=3","gravatar_id":"","url":"https://api.github.com/users/ciokan","html_url":"https://github.com/ciokan","followers_url":"https://api.github.com/users/ciokan/followers","following_url":"https://api.github.com/users/ciokan/following{/other_user}","gists_url":"https://api.github.com/users/ciokan/gists{/gist_id}","starred_url":"https://api.github.com/users/ciokan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciokan/subscriptions","organizations_url":"https://api.github.com/users/ciokan/orgs","repos_url":"https://api.github.com/users/ciokan/repos","events_url":"https://api.github.com/users/ciokan/events{/privacy}","received_events_url":"https://api.github.com/users/ciokan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-16T08:21:34Z","updated_at":"2017-01-16T12:42:59Z","closed_at":null,"body":"Is there any way in which this library could be used to parse existing records/without performing any lookup to the whois servers? I'm asking because I need to parse a huge number of such records and this is the only library that I found to output a lot of useful stuff.\r\n\r\nUnfortunately I don't know Ruby that much, I looked at the code without being able to figure out how to use just the parser and give it a string -> output.\r\n\r\nI would highly appreciate a bit of example."},"comment":{"url":"https://api.github.com/repos/weppos/whois/issues/comments/272852890","html_url":"https://github.com/weppos/whois/issues/546#issuecomment-272852890","issue_url":"https://api.github.com/repos/weppos/whois/issues/546","id":272852890,"user":{"login":"ciokan","id":474948,"avatar_url":"https://avatars.githubusercontent.com/u/474948?v=3","gravatar_id":"","url":"https://api.github.com/users/ciokan","html_url":"https://github.com/ciokan","followers_url":"https://api.github.com/users/ciokan/followers","following_url":"https://api.github.com/users/ciokan/following{/other_user}","gists_url":"https://api.github.com/users/ciokan/gists{/gist_id}","starred_url":"https://api.github.com/users/ciokan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciokan/subscriptions","organizations_url":"https://api.github.com/users/ciokan/orgs","repos_url":"https://api.github.com/users/ciokan/repos","events_url":"https://api.github.com/users/ciokan/events{/privacy}","received_events_url":"https://api.github.com/users/ciokan/received_events","type":"User","site_admin":false},"created_at":"2017-01-16T12:42:59Z","updated_at":"2017-01-16T12:42:59Z","body":"Ok I thought I figured it out but it's incomplete. While this works:\r\n\r\n`puts Whois.whois('stripe.com').parser.registrant_contacts`\r\n\r\nThis doesn't:\r\n```\r\npart = Whois::Record::Part.new(body: File.read(\"stripe.txt\"))# file contains full whois response\r\nserver = Whois::Server.guess('stripe.com')\r\nparser = Whois::Parser.parser_klass(server.host)\r\n\r\nres = parser.new(part)\r\nputs res.registrant_contacts\r\n```\r\n\r\nFailing with:\r\n\r\n```\r\n/var/lib/gems/2.3.0/gems/whois-parser-1.0.0/lib/whois/parsers/base.rb:105:in `_property_registrant_contacts': Whois::AttributeNotImplemented (Whois::AttributeNotImplemented)\r\n\tfrom /var/lib/gems/2.3.0/gems/whois-parser-1.0.0/lib/whois/parsers/base.rb:393:in `handle_property'\r\n\tfrom /var/lib/gems/2.3.0/gems/whois-parser-1.0.0/lib/whois/parsers/base.rb:240:in `registrant_contacts'\r\n\tfrom test.rb:30:in `<main>'\r\n```\r\n\r\nI haven't done any ruby before but, from the looks of it, parser base has no such attributes. But why is it using the base parser..no idea. If I call `puts parser` it says `Whois::Parsers::WhoisVerisignGrsCom`\r\n\r\nAny help is much appreciated."}}
{"actor":{"display_login":"ciokan"}}