Skip to main content

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目录

  • 添加urllib3兼容性修复,解决可能出现的’appengine’导入错误

  • 更新requests依赖版本至2.31.0+,解决与jupyterlab-server和twine的版本冲突

0.2.1 (2025-10-15)

  • 小版本更新,修复依赖冲突问题

  • 完善项目配置

Metadata

Release files for chinadaily 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chinadaily 0.2.1
File Size Uploaded Provenance Actions
chinadaily-0.2.1.tar.gz 20.0 kB Without provenance Details for chinadaily-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chinadaily 0.2.1
File Interpreter ABI Platform Actions
chinadaily-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for chinadaily-0.2.1-py2.py3-none-any.whl

Total release size: 29.8 kB

Release files / chinadaily-0.2.1.tar.gz

Download URL chinadaily-0.2.1.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2556c239055eda1569db1baf9cbc8df49999c064734becff09c5d0354b6fb22b
BLAKE2b-256 checksum
How to use checksums
7cd31d4121d3413de8c8a3411d90c9cd66c4cc71dc7b4594a2b7c952942e4129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.1

Release files / chinadaily-0.2.1-py2.py3-none-any.whl

Download URL chinadaily-0.2.1-py2.py3-none-any.whl
Size 9.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
993f6c9fcbf11ff8bcc1db26740fb5bd1af9347d0cb3f9fb93a29fb3ede53035
BLAKE2b-256 checksum
How to use checksums
91616c4ba1c6e7c17a4d7667eecd42b7876bdb785ed9932cb0027cfcb267911b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.1

Security for chinadaily 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page