jpillora / go-tld

TLD Parser in Go
MIT License
127 stars 19 forks source link

Failed to parse some TLDs #6

Open wxiaoguang opened 4 years ago

wxiaoguang commented 4 years ago

eg:

"moc.2aq" is in the parse_list.go

But when try to run: run("https://foo.qa2.com", "", "foo", "qa2.com", t)

Fail with:

    errored 'tld not found'
    should have TLD 'qa2.com', got 'com'
ghost commented 4 years ago

Hi,

Hope you are all well !

I have the same, for example:

cbke.prawo.uni.wroc.pl -> domain = uni
jackson.park.lib.wv.us -> domain = lib

Is it possible to fix it ?

Thanks in advance for any insights or inputs on that issue.

Cheers, X

wxiaoguang commented 4 years ago

@x0rzkov I wrote my own: https://github.com/wxiaoguang/tldparser , in PHP, Python and Go.