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

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

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

0.2.1 (2025-10-15)

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

  • 完善项目配置

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.1.tar.gz (20.0 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.1-py2.py3-none-any.whl (9.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: chinadaily-0.2.1.tar.gz
  • Upload date:
  • Size: 20.0 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.1.tar.gz
Algorithm Hash digest
SHA256 2556c239055eda1569db1baf9cbc8df49999c064734becff09c5d0354b6fb22b
MD5 34f1e6f904bf81a99e60aff94fcf4db7
BLAKE2b-256 7cd31d4121d3413de8c8a3411d90c9cd66c4cc71dc7b4594a2b7c952942e4129

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chinadaily-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 993f6c9fcbf11ff8bcc1db26740fb5bd1af9347d0cb3f9fb93a29fb3ede53035
MD5 afe72df36f1f737bb6e66072a4fceefc
BLAKE2b-256 91616c4ba1c6e7c17a4d7667eecd42b7876bdb785ed9932cb0027cfcb267911b

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