novutec / domainparser Goto Github PK
View Code? Open in Web Editor NEWA domain name parser to parse and to validate a domain name.
Home Page: http://www.novutec.com
A domain name parser to parse and to validate a domain name.
Home Page: http://www.novutec.com
@3name can you please tag the fork you did since it is registered in packagist? would be a blast, thanks!
var url = "http://www.depuratoridomesticiacqua.it/";
var domainParser = new DomainParser(new WebTldRuleProvider());
var parts = domainParser.Get(url);
parts is null
It seems that .org and .net are not in the list of tld's, so .com is automatically appended to such domain names
Hey great script! I came across a problem with mlwgames.com
[exception] => Template whois.liquidnetlimited.com could not be found.
Hello, I use your good DomainParser,
in Parser.php, the url in :
protected $tldUrl = 'http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1';
I change to :
protected $tldUrl = 'https://publicsuffix.org/list/public_suffix_list.dat';
and it's ok.
Why? Seems like a bug. I did try another 2 letter domain (aa.com) and it worked fine. I haven't been able to test 1 letter domains yet.
I'm using the DomainParser via the WhoisParser and am doing whois queries both within web server/request contexts and within a shell script run by a cron job.
When the whois is done first within the web request context the DomainParser creates a cache file with file permissions that wont allow the subsequent shell script runs to get write access to the cached file. This causes the shell script to throw notices because it cannot remove and recreate the (stale) cached file.
My suggestion would be to either allow configuring file permissions for the cache file through both DomainParser and WhoisParser or get rid of the caching to file through the approach I've outlined in RFC and PR #3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.