https://github.com/kajdev/url-finder
A small python module to detect all real links in a given string.
https://github.com/kajdev/url-finder
Last synced: 9 months ago
JSON representation
A small python module to detect all real links in a given string.
- Host: GitHub
- URL: https://github.com/kajdev/url-finder
- Owner: KAJdev
- License: mit
- Created: 2021-09-27T05:35:39.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T00:14:37.000Z (about 4 years ago)
- Last Synced: 2025-03-09T07:39:43.486Z (10 months ago)
- Language: Python
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# url-finder
A small python module to detect all real links in a given string.
## Example
```py
import url_finder
text = """
Picking out google.com is trivial. As well as youtube.com,
and even knows what is a real tld, and what is not.a.real.top-level-domain!
"""
assert url_finder.get_urls(text) == ["https://google.com", "https://youtube.com"]
```
## Install
```
pip install url-finder
```