Skip to main content

No project description provided

Project description

Package that stores HTML within a string variable for scraping purposes

Installation

pip3 install fetchhtml 

Usage

from fetchhtml import get_html,find_element_by_attribute_value,save_html

Getting HTML of webpage

# Get HTML page of google.com
google_html = get_html("https://www.google.com")

Print HTML out to console

print(google_html)

Find HTML element in HTML

target_id = find_element_by_attribute_value(html, id="gbar")

Print the text of target element

print(target_id[0].text)

Save HTML file

save_html(google_html, "google.html")

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

fetchhtml-0.6.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

fetchhtml-0.6-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file fetchhtml-0.6.tar.gz.

File metadata

  • Download URL: fetchhtml-0.6.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for fetchhtml-0.6.tar.gz
Algorithm Hash digest
SHA256 762c7e3439e90ca949bb99cd8a4ff5ef823d673de189c8fea3b056096a87a8dc
MD5 06339d106c60c3547517f078afbfd7e9
BLAKE2b-256 4126b3bd53c0fb46804da9db2e1d2c9947dc47734ab4071f08efb78a04250f38

See more details on using hashes here.

File details

Details for the file fetchhtml-0.6-py3-none-any.whl.

File metadata

  • Download URL: fetchhtml-0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for fetchhtml-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d0279c572669cb4bdc9916b28c74e53f2fbdb1745b49dede2f8ecafebef8451d
MD5 81e5745058cde73f6681d3f09edb5a7e
BLAKE2b-256 a7e6b69281431f9a7e48d285f19a8f5902a4a567b00398536ff457200430bfe8

See more details on using hashes here.

Supported by

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