Skip to main content

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:

  1. Install dev dependencies: poetry install --all-extras
  2. Run the tests: pytest -v

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webpage_searcher-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webpage_searcher-0.0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for webpage_searcher-0.0.2.tar.gz
Algorithm Hash digest
SHA256 794eb7936f02e034e39a7637cac3285eed7bbbcab14241a9b7319ac53f33af05
MD5 dc9c00d9f13b29a6823948a53411472c
BLAKE2b-256 5721f72bdb12413d9f75fe053bb237748659ba21b7de361a9b821e252c1ff02c

See more details on using hashes here.

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

Hashes for webpage_searcher-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b555e161a6313496c5c2f8d468b7b5d043356c5eb0ea8b228d136211a507d9
MD5 20cf16924988d6102fc9c75e213a4a8f
BLAKE2b-256 863ac648d5e02bc990e6bbd0f94c4063126b6d890882f8f0160635724f44d651

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page