Skip to content

C++ application to extract suffixes and organisation from an URL.

License

Notifications You must be signed in to change notification settings

pierre-auguste/tld_extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

tld_extractor [-std=c++11 -lcurl]

A simple C++ application to extract suffixes and organisation from an URL. Read https://publicsuffix.org/learn/ if you want to improve your knowledge about TLD and suffixes.

This application use curl library to download public suffixes in a cache file.

Note :

If multiple data are to be returned, a slash will be used to separate items.

A cache file named "suffixes.txt" and containing suffixes is created on your local system.

###RFC2606: Reserved names are returned as a TLD if a subdomain exists.

Reserved names are: test, example, invalid, localhost.

##Exemples of usage:

Delete cache:

$ ./tldExtractor -u

Delete cache and enter interactive mode:

$ ./tldExtractor -u -i

Get all informations about www.exemple.co.uk:

$ ./tldExtractor -f -o -s -p -d -t -c http://www.exemple.co.uk/index.html

Result : www.exemple.co.uk/exemple/co.uk/www/exemple.co.uk/uk/uk

##Thanks Many thanks to Ksass`Peuk and Markand who helped me to improve my poor C++ knowledge. You may follow our french conversation here :

https://openclassrooms.com/forum/sujet/ma-premiere-appli-c-vos-avis

Have fun !

About

C++ application to extract suffixes and organisation from an URL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages