question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lipojacommented, Feb 12, 2018

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.

0reactions
lipojacommented, Oct 25, 2019

@infokiller I will extract this request to separate issue. Because localhost is not IP address.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found