Skip to main content

Download China Daily newspaper PDF

Project description

ChinaDailyProject

https://img.shields.io/pypi/v/chinadailyproject.svg https://img.shields.io/travis/yarving/chinadailyproject.svg Documentation Status

Download China Daily newspaper PDF

Installation and Upgrade

  • Installation: pip install chinadaily

  • Upgrade: pip install –upgrade chinadaily

Usage

  • Download today’s China Daily newspaper: chinadaily

  • Download specific date’s newspaper (eg 2020-10-10): chinadaily 20201010

How to Development

after development, do the following steps:

  1. run test: python setup.py test

  2. install a local development version: python setup develop

  3. release a new version: python setup.py sdist upload

Features

  • 自动下载人民日报指定日期的PDF文件

  • 支持下载当天、指定日期、整月或整年的报纸

  • 智能识别并下载所有版面(多节点页面)的PDF链接

  • 按正确顺序合并所有PDF文件

  • 自动处理URL规范化和去重

  • 详细的日志记录和错误处理

  • 支持强制重新下载功能

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2020-07-05)

  • First release on PyPI.

0.1.6 (2020-10-11)

  • Auto-remove temp files

  • Release first runnable version

0.1.7 (2020-10-13)

  • Support download specified date, default is today

0.1.8 (2020-10-14)

  • Support download multi specified date, default is today

0.1.9

  • Support download specific month(-m/–month) and year(-y/–year) newspaper

0.2.0 (2025-10-13)

  • 修复时区差异问题,确保默认下载当天的报纸

  • 支持下载多节点页面的所有PDF链接

  • 优化PDF文件合并顺序,按照节点编号排序

  • 添加详细的测试指南

  • 改进URL构建和规范化逻辑

  • 增强错误处理和日志记录功能

  • 整理项目结构,将测试文件统一移动到tests目录

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

chinadaily-0.2.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chinadaily-0.2.0-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file chinadaily-0.2.0.tar.gz.

File metadata

  • Download URL: chinadaily-0.2.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.1

File hashes

Hashes for chinadaily-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7009eefca09eaa4250cbde51587fdfa36d1397d15a7d8dd0c80bc1e4cbabaa58
MD5 18e17b02983d2170866743cace1b5751
BLAKE2b-256 efae8ff6d534250d34915310d897a5b249f75e63cbf74f05e6bfc246a712bd98

See more details on using hashes here.

File details

Details for the file chinadaily-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: chinadaily-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.1

File hashes

Hashes for chinadaily-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 81660e74e06469b98fc413b86be8b45c8ebd9f9656cb395593867bb12e23cd53
MD5 58fcb095f0eccbb67b194739dece951d
BLAKE2b-256 92d203c2772990e6b0f028128f2cac242e01c1e42dc8e6783a05ba91263cf67a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page