Skip to main content

Extracting the content from the webpage

Project description

content-fetch

This package helps you parse the text from the webpage. The input to the function can be a path to an HTML file on your disk or a URL to a web page.

You can install the package by running the following command

pip install contentfetch

Please refer to the code snippet for parsing the text from the HTML file

import contentfetch

results_json = contentfetch.extract_content(html=<html_file>)

results_json

### OR

from contentfetch import extract_content

results_json = extract_content(html=<html_file>)

results_json

Please refer to the code snippet for parsing the text from the webpage through URL

import contentfetch

results_json = contentfetch.extract_content(url=<webpage_url>)

results_json

### OR

from contentfetch import extract_content

results_json = extract_content(url=<webpage_url>)

results_json

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

contentfetch-0.0.4.tar.gz (12.1 kB view hashes)

Uploaded Source

Built Distribution

contentfetch-0.0.4-py3-none-any.whl (20.1 kB view hashes)

Uploaded Python 3

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