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

Print top X tlds option #24

Open
ProgramComputer opened this issue Jul 2, 2021 · 3 comments
Open

Print top X tlds option #24

ProgramComputer opened this issue Jul 2, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ProgramComputer
Copy link

ProgramComputer commented Jul 2, 2021

when comparing two hosts files with -tld, add option to print X number of tlds so to compare say top 5, 10, 20 ... tlds of each hosts file.

@StevenBlack StevenBlack self-assigned this Oct 15, 2021
@StevenBlack StevenBlack added the enhancement New feature or request label Oct 15, 2021
@StevenBlack
Copy link
Owner

Thanks Paul @ProgramComputer. I like this idea.

@StevenBlack
Copy link
Owner

@ProgramComputer still nowhere with this issue, just adding some sugar to the -tld output so far.

What are you thinking, in the event of a top 5, 10, 20 ... tlds, laid-up side-by-side to compare?

Let's say we do a top-5, if I just copy-and-paste of a typical output, how is this valuable? In this case one list is about six times larger than the other.

$ ./ghosts -c https://someonewhocares.org/hosts/zero/hosts -tld
----------------------------------------
Base hosts file summary:
----------------------------------------
Location: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
Domains: 93,465
Bytes: 2.9 MB
TLD tally:  (394 unique TLD)
   com: 44,488
   net: 11,380
   pl: 6,394
   xyz: 3,325
   info: 2,004
----------------------------------------
----------------------------------------
Compared hosts file summary:
----------------------------------------
Location: https://someonewhocares.org/hosts/zero/hosts
Domains: 16,933
Bytes: 483 kB
TLD tally:  (177 unique TLD)
   com: 10,093
   net: 2,634
   info: 563
   ru: 296
   de: 263
----------------------------------------
Intersection: 16,933 domains

@ProgramComputer
Copy link
Author

@StevenBlack Displayed as is fine. It's to see which TLDs have a larger share of a list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants