Website Reader Library
The Website Reader Library is a Python library that allows you to read the HTML content of a website and extract the core text contents (usually the article for news pages). It uses the popular Python libraries requests, re, and BeautifulSoup.
Installation
You can install the Website Reader Library using pip:
pip install website-reader
python Copy code
Usage
from ArtiPull import read_website
# Provide the URL of the website you want to read
url = "https://example.com"
text = read_website(url)
# Extracted text content from the inner-most HTML tags
print(text)
Functionality
The read_website(url) function takes a URL as input and returns the text content from the inner-most HTML tags of the website. It uses requests library to make a GET request to the URL, BeautifulSoup library to parse the HTML content, and regular expressions (re) to extract the text content from inner-most tags.
License
This library is released under the MIT License. See LICENSE for more information.
Contributing
If you find any issues or have suggestions for improvements, please feel free to contribute to this project by opening an issue or submitting a pull request. Contributions are welcome!
Authors
This library is developed and maintained by Nick Kraftor.
Release files for artipull 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| artipull-0.0.1.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| artipull-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / artipull-0.0.1.tar.gz
| Download URL | artipull-0.0.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42d8bd018d3ac9abf2cad18ef45938214780d670419f14fb675c555c2c0a7da4
|
|
BLAKE2b-256 checksum How to use checksums |
9cca2e073929cde6b1d0f10e8872587aaff2370d2511e23dbb8cb8af2ecdc6ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / artipull-0.0.1-py3-none-any.whl
| Download URL | artipull-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32aa6c5b700deec80467a6451f04b8dcd2e75e991cf7635947bb8ef51f3f004c
|
|
BLAKE2b-256 checksum How to use checksums |
9c3e5787309cbb85866918f57ce1cfa15574523a8223a003534653d8e2939f97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|