开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜