Python equivalents to Perl's URI::Find
In Python, are there any modules for extracting plain urls from a string like Perl's URI::Find does?
Tha开发者_StackOverflow社区nks.
Here is a regex which can help you find the urls in text. There is no famous package in python which does uri::find in plain text. The sphinx documentation project however, includes a builder called linkcheck
which finds all the links and checks for validity. You can check it's source too, but the linked regex is somewhat simpler.
If you simply care about http and https, the answer is here.
精彩评论