Skip to main content

A library for parsing jingdong pages.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

jd_page_parser-0.0.1-py2.py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 2 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