Currently only support book pages. All fields use same encoding ‘utf-8’.
Category fields: * name - Category name * url - Category url * children - Subcategories.
Book list fields: * links - A list of links in {‘title’: ‘’, ‘url’: ‘’} format * next_page_uri- Next page uri
Book detail fields: * title - Book title * author - Book authors, delimited by comma * images - Image url list * detail - Detail key-value pairs
Content
jd_page_parser.category_parsers.BookCategoryParser
jd_page_parser.product_list_parsers.BookListParser
jd_page_parser.detail_parsers.BookDetailParser
Installation
The simplest way is to install it via pip:
pip install jd-page-parser
Run Test
pip install -r requirements-dev.txt
tox
Release files for jd-page-parser 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jd_page_parser-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / jd_page_parser-0.0.1-py2.py3-none-any.whl
| Download URL | jd_page_parser-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
75d5f0fb6e37a3681c9320e19056992189ba0844816f0a3defe46e222c6cd198
|
|
BLAKE2b-256 checksum How to use checksums |
6594a7822ac63ead685f43d28d10f711aa5f5597bb39c8b9797d7a5825e942f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/38.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.4.3
|