urlextract does not support IP address based URLs
See original GitHub issue$ echo this is a test of http://1.1.1.1/neatstuff using urlextract > urltest
$ echo this is a test of http://fun.domain.com/neatstuff using urlextract >> urltest
$ urlextract urltest
http://fun.domain.com/neatstuff
$
URLs containing IPs instead of hostnames are not extracted.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
urlextract
Collects and extracts URLs from given text. ... URLExtract is python class for collecting (extracting) URLs from given text based on locating TLD....
Read more >How do you extract a url from a string using python?
from urlextract import URLExtract extractor = URLExtract() urls ... But if the program does not have internet access then it's not for you....
Read more >How To Convert a URL to IP Address - KeyCDN Support
There are various reasons why you may want to convert a URL to IP address. This post provides 3 easy methods to do...
Read more >urllib.request — Extensible library for opening URLs — Python ...
This is the host name or IP address of the original request that was initiated by the ... There is no support for...
Read more >python extract url from string
184 Leave a Reply Your email address will not be published. Relaxing the assumption to have only one --, we can have the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes you are right. The name of tool is misleading. Original purpose of this tool (at least for me) was to extract URLs based on locating TLD in text. It means that extracting URL that does not contain TLD is not yet supported.
I think this is the way in which this tool should improve. Thank you for the code above - interesting solution. I will work on it soon.
@infokiller I will extract this request to separate issue. Because
localhost
is not IP address.