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.1.tar.gz (4.6 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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file webpage_searcher-0.0.1.tar.gz.

File metadata

  • Download URL: webpage_searcher-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.7.15 Linux/5.15.0-1031-azure

File hashes

Hashes for webpage_searcher-0.0.1.tar.gz
Algorithm Hash digest
SHA256 690f15dce68d2840d1985fc6e37e41aebfff58b0d338c2dcb50a66bb5b30bb52
MD5 24697853a82df0be648ac8d333f2d05a
BLAKE2b-256 2bcd48fc51ecfcb41e6f46959033277adb4499be8c0398f6bff43056edd193ae

See more details on using hashes here.

File details

Details for the file webpage_searcher-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: webpage_searcher-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.7.15 Linux/5.15.0-1031-azure

File hashes

Hashes for webpage_searcher-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26e6c07bf6ac7547ddd0cb798649f1467dea7fc22f0dad225a9b9ff17781ce39
MD5 e865104d9e4868b834c2d0bb9619a61d
BLAKE2b-256 d50d23e6e095d749bbbf167abbaf04a56891c7ae9e79fecb438e245e76fcddd1

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