pyce3: Multilingual Web Page Content Extractor for Python3
Introduction
pyce3 is a python3 package for multilingual web page content extraction. It is used to extract the content of article type web pages, such as news, blog posts, etc.
Usage
import pyce3
import requests
url = "http://caijing.chinadaily.com.cn/a/201911/21/WS5dd62455a31099ab995ed438.html"
html = requests.get(url).content
encoding, time, title, text, next_link = pyce3.parse(url, html)
print("编码:"+encoding)
print('='*10)
print("标题:"+title)
print("时间:"+time)
print('='*10)
print("内容:"+text)
print("NextPageLink: ", next_link)
Metadata
Release files for pyce3 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyce3-1.0.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyce3-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.7 kB
Release files / pyce3-1.0.0.tar.gz
| Download URL | pyce3-1.0.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13dcd5738bfb65b80fd8f7d4bad29520655b80b07bd433978c28cd72c038e5d3
|
|
BLAKE2b-256 checksum How to use checksums |
89aff13ad2c9ad0ed1c9dc6c736119d8187887c22dd241a867f4990402f7e732
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / pyce3-1.0.0-py3-none-any.whl
| Download URL | pyce3-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3923560efdd8fc13dc9c4e3aa7215c6eb8c082e996c525c36bf1e1d7e2775ea4
|
|
BLAKE2b-256 checksum How to use checksums |
02c384374e67d368af3e1f81936e73fa703e520f6de8212f6b390e8a32e85fb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|