hello
Project description
Webpage Searcher
Description
A library that search for a phrase or a url in an html document
Usage
To search for a url:
from webpage_searcher import UrlFinder
html = "<html><a href="https://google.com">google</a></html>"
finder = UrlFinder(html)
results = finder.find("google.com")
To search for a phrase:
from webpage_searcher import PhraseFinder
html = "<html>hello</html>"
finder = PhraseFinder(html)
results = finder.find("hello")
Contributing
To run the tests:
- Install dev dependencies:
poetry install --all-extras - Run the tests:
pytest -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webpage_searcher-0.0.2.tar.gz.
File metadata
- Download URL: webpage_searcher-0.0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.16 Linux/5.15.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
794eb7936f02e034e39a7637cac3285eed7bbbcab14241a9b7319ac53f33af05
|
|
| MD5 |
dc9c00d9f13b29a6823948a53411472c
|
|
| BLAKE2b-256 |
5721f72bdb12413d9f75fe053bb237748659ba21b7de361a9b821e252c1ff02c
|
File details
Details for the file webpage_searcher-0.0.2-py3-none-any.whl.
File metadata
- Download URL: webpage_searcher-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.16 Linux/5.15.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4b555e161a6313496c5c2f8d468b7b5d043356c5eb0ea8b228d136211a507d9
|
|
| MD5 |
20cf16924988d6102fc9c75e213a4a8f
|
|
| BLAKE2b-256 |
863ac648d5e02bc990e6bbd0f94c4063126b6d890882f8f0160635724f44d651
|