Saravanan666/pypi-org huggingface dataset:
Package: url2kindle
url2kindleurl2kindle- send web articles to your Kindle from terminalurl2kindle is (unofficial) cli interface toPush to Kindle.Installation$pipxinstallurl2kindleor$pipinstallurl2kindleUsageFirst you need to configure your Amazon accout. Detailed instructions how to do that can be foundhere.To send article to Kindle run:$u2khttp://example.com/article.htmlOn first runurl2kindlewill ask for your Kindle email address and ‘send from’ address.
If you leave ‘send from’ field blank it will default tokindle@fivefilters.org.
Both addresses will be saved in configuration file.
Package: url2markdown-cli
# url2markdown-cliFetch a url and translate it to markdown in one command.## UsageTo install:`shell $ pip installurl2markdown-cli`To use:`shell url2markdown--with-cachehttps://www.djangoproject.com/`To use your own custom url2markdown server instance (you should):`shell exportURL2MARKDOWN_URL='http://markdownplease.com/?url={url}'`## ThanksThanks to @kennethreitz for his [url2markdown](https://github.com/kennethreitz/url2markdown) project which this compliments.## Contact / Social MediaHere are a few ways to keep up with me online. If you have a question about this project, please consider opening a GitHub Issue.[![](https://jefftriplett.com/assets/images/social/github.png)](https://github.com/jefftriplett)
[![](https://jefftriplett.com/assets/images/social/globe.png)](https://jefftriplett.com/)
[![](https://jefftriplett.com/assets/images/social/twitter.png)](https://twitter.com/webology)
[![](https://jefftriplett.com/assets/images/social/docker.png)](https://hub.docker.com/u/jefftriplett/)## History### 0.4.2 (2017-01-22)Re-factors app structure### 0.4.1 (2017-01-22)Fixes README and HISTORY (oops)### 0.4.0 (2017-01-22)Update to use markdownplease.comUpdate requests-cache to be optional### 0.2.1 (2015-01-11)Updated readme to fix file path.### 0.2.0 (2015-01-11)Renamed module.### 0.1.0 (2015-01-11)First release on PyPI.
Package: url2tree
url2treePython package that analysis url visiting log by using tree structure.Free software: MIT licenseDocumentation:https://url2tree.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-09-18)First release on PyPI.
Package: url64
url64🐍 base64url decode/encode for python💾 Install•🎮 Quick start•🌐 Links•👤 Contributing•💼 Licenseurl64is the common name for thebase64urldescribed in theRFC4648 §5.
Since the original base64 alphabet contains invalid characters for URLs a safe
base64 for url is suggested, replacing the 62nd (plus sign +) and 63rd
(slash /) with new chars respectively the minus-and underscore_and
removing also the padding that is represented with the equal sign=.This a handy small utility to encode/decode strings in url64 with python3
very useful for JWT🚩 Table of Contents(click to expand)InstallQuick startLinksContributingLicense💾 Installpip install url64🎮 Quick startencodeimporturl64encoded=url64.encode('Hello world!')print(encoded)# SGVsbG8gd29ybGQhdict_exncode=url64.encode(dict(alg="HS256",typ="JWT"))print(dict_exncode)# eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9decodeimporturl64decoded=url64.decode('SGVsbG8gd29ybGQh')print(decoded)# Hello world!dict_decoded=url64.decode('eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9')print(dict_decoded)# {"alg": "HS256", "typ": "JWT"}🌐 Linkshttps://tools.ietf.org/html/rfc4648#section-5https://en.wikipedia.org/wiki/Base64#URL_applicationshttps://base64.guru/standards/base64url👤 Contributing🔀FORK ITCreate your feature branchgit checkout -b feature/branchCommit your changesgit commit -am 'Add some fooBar'Push to the branchgit push origin feature/branchCreate a new Pull Request🙏 Thank you💼 LicenseCopyright (c) 2019 Puria Nafisi Azizi

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: urlblocks
urlblocksurlblocksis the module provided URL string class which can be operated as a constructor, consisting of some blocks - URL components.This is the fork ofzacharyvoase/URLObject projectbut with several key changes and new functionality:FollowingPEP-20, the zen of Python, errors should never pass silently. To comply with this standard, invalid URLs, such as empty, hostless or schemeless now got denied.Domains manipulation support.Additional helpers (such as manipulations with trailing slashes) are available.InstallationpipinstallurlblocksDocumentationComing soon.(Un)licenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.For more information, please refer tounlicense.orgCreditsThis library bundlessix, which is licensed as follows:Copyright (c) 2010-2012 Benjamin PetersonPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Many thanks go toAron Griffisfor porting
this library to Python 3, and tovmallocfor
work on the comprehensive API documentation and Sphinx setup.
Package: urlbreakdown
URLBreakdownsplits a URL into individual components, unescapes arguments, and performs light calculations for manual or automated analysisInstallationpip install urlbreakdownUsageURLBreakdown("url", pguid=None, verbose=False)default is just a URL, with no parent GUID, in non-verbose modeinclude a parent GUID/UUID if generated in the script calling this moduleverbose includes a simple character frequency map, and an additional array-of-nested-arrays of parametersfrom urlbreakdown import URLBreakdown
u = URLBreakdown("https://search.yahoo.com/search?p=google&fr=yfp-t&ei=UTF-8&fp=1&blank1=&blank2=")
print(u.json)
#
# optional arguments pguid and verbose
#
u = URLBreakdown("https://search.yahoo.com/search?p=google&fr=yfp-t&ei=UTF-8&fp=1&blank1=&blank2=", pguid="1234-5678-9001", verbose=True)Available Attributesjson (string)
output (dictionary)Example Output (via test-urlbreakdown-usage-example.py){
  "@timestamp": "2021-04-28T19:46:38.144Z",
  "guid": "be9fc53e-04a1-4ec9-b382-5a3ef7704039",
  "url": {
    "full": "https://www.google.com/search?client=firefox-b-1-d&q=reddit&a=%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E",
    "len": 104,
    "original": "https://www.google.com/search?client=firefox-b-1-d&q=reddit&a=%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E",
    "dot_count_url": 2,
    "scheme": "https",
    "domain": "www.google.com",
    "dot_count_domain": 2,
    "query": "client=firefox-b-1-d&q=reddit&a=%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E",
    "query_len": 74,
    "path": "/search",
    "unquoted": {
      "query": "client=firefox-b-1-d&q=reddit&a=<script>alert(1);</script>",
      "query_len": 58
    },
    "parameters": {
      "keys": [
        "a",
        "q",
        "client"
      ],
      "values": [
        "reddit",
        "<script>alert(1)",
        "firefox-b-1-d",
        "<script>alert(1);</script>"
      ],
...
Package: urlcanon
A URL canonicalization (normalization) library for Python and Java.It currently provides:A URL parser which preserves the input bytes exactlyA precanned canonicalization ruleset that tries to match the normalization
implicit in theparsing rules used by browsersAn alternative URL serialization suitable for sorting and prefix-matching:SSURT.Status:Stable and in production use for some time. But no API or output
stability guarantees yet. There are differences in features between Java and
Python versions.ExamplesPython>>>importurlcanon>>>input_url="http://///EXAMPLE.com:80/foo/../bar">>>parsed_url=urlcanon.parse_url(input_url)>>>print(parsed_url)http://///EXAMPLE.com:80/foo/../bar>>>urlcanon.whatwg(parsed_url)<urlcanon.parse.ParsedUrlobjectat0x10eb13a58>>>>print(parsed_url)http://example.com/bar>>>print(parsed_url.ssurt())b'com,example,//:http/bar'>>>>>>rule=urlcanon.MatchRule(ssurt=b'com,example,//:http/bar')>>>urlcanon.whatwg.rule_applies(rule,b'https://example..com/bar/baz')False>>>urlcanon.whatwg.rule_applies(rule,b'HTtp:////eXAMple.Com/bar//baz//..///quu')TruePython releases are available in PyPI:pipinstallurlcanonJavaStringinputUrl="http://///EXAMPLE.com:80/foo/../bar";ParsedUrlparsedUrl=ParsedUrl.parseUrl(inputUrl);System.out.println(parsedUrl);// http://///EXAMPLE.com:80/foo/../barCanonicalizer.WHATWG.canonicalize(parsedUrl);System.out.println(parsedUrl);// http://example.com/barSystem.out.println(parsedUrl.ssurt());// "com,example,//:http/bar"Java releases are available in the Maven Central repository:<dependency><groupId>org.netpreserve</groupId><artifactId>urlcanon</artifactId><version>0.1.1</version></dependency>LicenseCopyright (C) 2016-2018 Internet ArchiveCopyright (C) 2016-2017 National Library of AustraliaLicensed under the Apache License, Version 2.0 (the “License”); you may
not use this software except in compliance with the License. You may
obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: urlclean
Welcome to urlclean’s documentation!urlclean provides functions:to follow a http redirect,to follow a HTML META redirect,to remove Urchin and Facebook tracker URL parameters,plugins for futher cleaning power,combines all these to unshorten and resolve various URLSTry it out from the commandline:python -m urlclean <some url>Contents:Indices and tablesIndexModule IndexSearch PageDocumentation for the Codeurlcleaner a module that resolves redirected urls and removes tracking
url paramsurlclean.weedparams(url)removes Urchin Tracker and Facebook surveillance params from urls.Args:url (str):  The url to scrub of ugly paramsReturns:(str).  The return cleaned urlurlclean.httpresolve(url, ua=None, proxyhost=’’, proxyport=’’)resolve one redirection of a http request.Args:url (str):  The url to follow one redirectua (fn):  A function returning a User Agent string (optional)proxyhost (str):  http proxy server (optional)proxyport (int):  http proxy server port (optional)Returns: (str, httplib.response).  The return resolved url, andthe response from the http queryurlclean.unmeta(url, res)Finds any meta redirects a httplib.response object that has
text/html as content-type.Args:url (str):  The url to follow one redirectres (httplib.response):  a http.response objectReturns: (str).  The return resolved urlurlclean.unshorten(url, cache=None, ua=None, >>**<<kwargs)resolves all HTTP/META redirects and optionally caches them in any
object supporting a __getitem__, __setitem__ interfaceArgs:url (str):  The url to follow one redirectcache (PersistentCryptoDict):  an optional PersistentCryptoDict
instanceua (fn):  A function returning a User Agent string (optional),
the default is googlebot.>>**<<kwargs (dict):  optional proxy args for
urlclean.httpresolve (default: localhost:8118)Returns: (str).  The return final cleaned url.PluginsPlugins should have a convert function that receives and returns a
URL. In case of an error an unchanged URL should be returned.Changelogv0.5.4 - fixed httpresolve for relative urlsv0.5.1 - install/doc fixesv0.5 - added plugins
Package: url-cleaner
URL CleanerIntroductionA package for removing tracing parameters from URLs. This package supports:Automatically updatingfiltering rules from Adguard.Custom filtering rules.Host pathname specificfiltering.Hundreds of filtering rulesfor using!Inspired byClearUrlandURL Bot, thanks for their efforts!Rules from:AdguardFiltersurl_botExamples原始：https://baijiahao.baidu.com/s?id=1748839822649920321&wfr=spider&for=pc清除后：https://baijiahao.baidu.com/s?id=1748839822649920321原始：https://mp.weixin.qq.com/s?__biz=MjM5OTExMjYwMA==&mid=2670081058&idx=6&sn=1ad7112020c2a4104d67ca542ab14444&chksm=bc12eed58b6567c30c78123a9e8901241512642305dabae4fa1f52357f5ce0ac7a85554#rd清除后：https://mp.weixin.qq.com/s?__biz=MjM5OTExMjYwMA%3D%3D&mid=2670081058&idx=6&sn=1ad7112020c2a4104d67ca542ab14444#rd原始：https://www.bilibili.com/video/BV158411b7ki/?spm_id_from=333234107.tianma.1-2-2.click清除后：https://www.bilibili.com/video/BV158411b7ki/UsageInstallpip install url-cleanerClean URLsfromurl_cleanerimportUrlCleanerc=UrlCleaner()url="https://baijiahao.baidu.com/s?id=1748839822649920321&wfr=spider&for=pc"cleaned=c.clean(url)print(cleaned)https://baijiahao.baidu.com/s?id=1748839822649920321Update rulesfromurl_cleanerimportUrlCleanerc=UrlCleaner()c.ruler.update_rules()
Package: url-crawler
Overviewurl_crawler is a Python library to crawl the details of a URL.Usagefrom url_crawler import url_crawler
'''
  url -> string URL to crawl for information.
'''
package_details = url_crawler(url)

print(package_details.url)
print(package_details.domain)
print(package_details.check_https)
print(package_details.dot_count)
print(package_details.digit_count)
print(package_details.url_length)UtilitiesNameOutputDescriptionurlstrReturns the string url.domainstrReturns the domain of the url.registrarstrReturns the registrar for the given URL.registered_countrystrReturns the registered domain country of the given URL.whoisdictReturns the whois information of the given URL.registration_dateintReturns the number of days since registration of the given URL.expiry_dateintReturns the number of days to expiration of the given URL.intended_lifespanintReturns the number of days of intended lifespan of the given URL.dot_countintReturns the dot(.) count in the given URL.digit_countintReturns the digit count in the given URL.url_lengthintReturns the length of the given URL.fragments_countintReturns the fragment counts in the given URL.entropyintReturns the entropy of the given URL.check_httpboolChecks for http headers in the given URL.check_httpboolChecks for https headers in the given URL.url_responseboolChecks for the URL response.check_encodingboolChecks for encoding in in the given URL.check_clientboolChecks for client keyword in the given URL.check_adminboolChecks for admin keyword in the given URL.check_serverboolChecks for server keyword in the given URL.check_loginboolChecks for login keyword in the given URL.check_portsboolChecks for any ports in the given URL.RequirementsTherequirements.txtfile has details of all Python libraries for this package, and can be installed usingpip install -r requirements.txtOrganization├── src
│   ├── url_crawler
          ├── init             <- init
          ├── url_crawler      <- package source code for URL crawler
├── setup.py             <- setup file 
├── LICENSE              <- LICENSE
├── README.md            <- README
├── CONTRIBUTING.md      <- contribution
├── test.py              <- test cases for unit testing
├── requirements.txt     <- requirements file for reproducing the code packageLicenseMITContributionsFor steps on code contribution, please seeCONTRIBUTING.
Package: urld
urldURL descomposer to extract parts of url. It accepts urls by stdin and displays
the parts in stdout.InstallationFrom pypi:pip install urldUsageBy default, it splits the urls in their different parts:$echo"https://www.gitlab.com/Zer1t0?test=a#hey"|urld
httpswww.gitlab.com/Zer1t0test=aheyBut can also specify the parts you would like to retrieve:$echo"https://www.gitlab.com/index.html"|urld-fhost
www.gitlab.com

$echo"https://www.gitlab.com/index.html"|urld-fprotocolpath
https/index.html

$echo"https://www.gitlab.com/index.html"|urld-fextension
.html


$echo"https://www.gitlab.com/?foo=bar"|urld-pfoo
bar
Package: url-downloader
url_downloaderSimplify retrieving or downloading data from any url.
File downloads can be interrupted and continued later.Installationpython3 -m pip install url-downloaderUsage ExamplesDownloading files:fromurl_downloaderimportsave_filesave_file(url='https://example.url/image.jpg',file_path='C:\\path',file_name='name.jpg')Retrieving text data:fromurl_downloaderimportget_resourcedata=get_resource(url='https://example.url/')
Package: urldt
URLdtURLdt is a tool used to detect the amount of URL if it is available.InstallationYou can install urldt by:pip install urldt(please use the latest pip to install)UsageRequiredThe targets that you want to check should be put in a CSV file,
the CSV header should at least containurlandtitle.For example:url,title
http://shangcode.cn, blog of shangcode
http://dokebi.cn, blog of a cool guyRunningcheck if targets are availableurldt -f my_targets.csvorurldt --file my_targets.csvThe result will be output to the terminal in real-time.output result to fileurldt -f my_targets.csv -o result.csvorurldt --file my_targets.csv --output result.csvSave the available URL information into a CSV file.
Package: urledit
Url parsing and editing as an object or in a functional style.>>> from urledit import urledit
>>> url = 'forum/showthread.php?s=12345&p=728386#post728386'Functional style>>> urledit(url)(scheme='http')(netloc='host.com')(fragment=''
... ).param(s=None).param(a=1).param(b=['x', 'y', 'z']).join()
'http://host.com/forum/showthread.php?p=728386&a=1&b=x&b=y&b=z'or>>> urledit(url, scheme='http', netloc='host.com', fragment=''
... ).param(('s', None), ('a', 1), b=['x', 'y', 'z']).join()
'http://host.com/forum/showthread.php?p=728386&a=1&b=x&b=y&b=z'Object style>>> u = urledit(url)
>>> u.scheme, u.netloc, u.path, u.qs, u.fragment
('', '', 'forum/showthread.php', 's=12345&p=728386', 'post728386')>>> u.scheme, u.netloc, u.fragment = 'http', 'host.com', ''
>>> u.join()
'http://host.com/forum/showthread.php?s=12345&p=728386'Working with query string:>>> u.query == {'p': '728386', 's': '12345'}
True>>> del u.query['s']
>>> u.join()
'http://host.com/forum/showthread.php?p=728386'>>> u.query['a'] = 1
>>> u.query['b'] = ['x', 'y', 'z']
>>> u.join()
'http://host.com/forum/showthread.php?p=728386&a=1&b=x&b=y&b=z'
Package: urler
URLer - GET it?Free software: MIT licenseDocumentation:https://urler.readthedocs.org.Abouturleris a simple script to GET an URL or a.csvlist of URLs.Installpip install urlerHow ToURLerUsage:urler(<host><port><path>|<file>)urler(-h|--help|--version)Examples:urlerexample.com8080index.htmlurlertargets.csvAssumptions:youknowwhatyouaredoingCommands:hosttargethostportdestinationportpathURLpathfilesystempathtoacsvfilewiththefollowingfields:host,port,pathOptions:-h,--helpshowthishelpmessageandexit--versionprintsprogramversionandexitHistory0.1.1 (2016-05-11)Enable urler to be available as a script.0.1.0 (2016-05-10)First release on PyPI.
Package: urlexpander
This package makes working with link data from social media and webpages easier. It not only expands links, but catches errors, and makes parallel link expansion quick and efficient.import urlexpander
urlexpander.expand('https://trib.al/xXI5ruM')returns'https://www.breitbart.com/video/2017/12/31/lindsey-graham-trump-just-cant-tweet-iran/'Please take a look at thequickstart.
Package: urlexpander-test
This package makes working with link data from social media and webpages easier. It not only expands links, but catches errors, and makes parallel link expansion quick and efficient.import urlexpander
urlexpander.expand('https://trib.al/xXI5ruM')returns'https://www.breitbart.com/video/2017/12/31/lindsey-graham-trump-just-cant-tweet-iran/'Please take a look at thequickstart.
Package: urlextract
URLExtract is python class for collecting (extracting) URLs from given
text based on locating TLD.How does it workIt tries to find any occurrence of TLD in given text. If TLD is found it
starts from that position to expand boundaries to both sides searching
for “stop character” (usually whitespace, comma, single or double
quote).A dns check option is available to also reject invalid domain names.NOTE: List of TLDs is downloaded from iana.org to keep you up to date with new TLDs.InstallationPackage is available on PyPI - you can install it via pip.pip install urlextractDocumentationOnline documentation is published athttp://urlextract.readthedocs.io/RequirementsIDNA for converting links to IDNA formaturitools for domain name validationplatformdirs for determining user’s cache directorydnspython to cache DNS resultspip install idna
pip install uritools
pip install platformdirs
pip install dnspythonOr you can install the requirements withrequirements.txt:pip install -r requirements.txtRun toxInstall tox:pip install toxThen run it:toxExampleYou can look at command line program at the end ofurlextract.py.
But everything you need to know is this:fromurlextractimportURLExtractextractor=URLExtract()urls=extractor.find_urls("Text with URLs. Let's have URL janlipovsky.cz as an example.")print(urls)# prints: ['janlipovsky.cz']Or you can get generator over URLs in text by:fromurlextractimportURLExtractextractor=URLExtract()example_text="Text with URLs. Let's have URL janlipovsky.cz as an example."forurlinextractor.gen_urls(example_text):print(url)# prints: ['janlipovsky.cz']Or if you want to just check if there is at least one URL you can do:fromurlextractimportURLExtractextractor=URLExtract()example_text="Text with URLs. Let's have URL janlipovsky.cz as an example."ifextractor.has_urls(example_text):print("Given text contains some URL")If you want to have up to date list of TLDs you can useupdate():fromurlextractimportURLExtractextractor=URLExtract()extractor.update()orupdate_when_older()method:fromurlextractimportURLExtractextractor=URLExtract()extractor.update_when_older(7)# updates when list is older that 7 daysKnown issuesSince TLD can be not only shortcut but also some meaningful word we might see “false matches” when we are searching
for URL in some HTML pages. The false match can occur for example in css or JS when you are referring to HTML item
using its classes.Example HTML code:<pclass="bold name">Jan</p><style>p.bold.name{font-weight:bold;}</style>If this HTML snippet is on the input ofurlextract.find_urls()it will returnp.bold.nameas an URL.
Behavior of urlextract is correct, because.nameis valid TLD and urlextract just see that there isbold.namevalid domain name andpis valid sub-domain.LicenseThis piece of code is licensed under The MIT License.