Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve extraction of host names and registered domains #26

Open
sebastian-nagel opened this issue Apr 4, 2023 · 0 comments
Open

Improve extraction of host names and registered domains #26

sebastian-nagel opened this issue Apr 4, 2023 · 0 comments

Comments

@sebastian-nagel
Copy link
Contributor

  • no host name is extracted in the following situations
    • URL contains 4 slashes after the protocol: https:////example.org/ - while java.net.URL extracts an empty hostname, the Nutch's OkHTTP-based protocol seems to fetch the resource as if there are only two slashes.
    • similarly java.net.URL and OkHttp show a different behavior if there is an overlong (or even invalid?) userinfo before the hostname (scheme://userinfo@hostname/)
  • IP addresses are not recognized as such if ending in a dot: https://123.123.123.123./robots.txt
  • the extraction of registered domains (done by crawler-commons' EffectiveTldFinder does not extract anything if the hostname is equal to a public suffix (gov.uk, kharkov.ua for example)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant