Metadata-Version: 2.4
Name: chinadaily
Version: 0.2.0
Summary: Download China Daily newspaper PDF
Home-page: https://github.com/yarving/chinadailyproject
Author: ChinaDaily
Author-email: yarving@qq.com
License: GNU General Public License v3
Keywords: chinadaily
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.5
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: requests==2.24.0
Requires-Dist: PyPDF2==1.26.0
Requires-Dist: beautifulsoup4==4.9.3
Requires-Dist: lxml==4.6.1
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

=================
ChinaDailyProject
=================


.. image:: https://img.shields.io/pypi/v/chinadailyproject.svg
        :target: https://pypi.python.org/pypi/chinadailyproject

.. image:: https://img.shields.io/travis/yarving/chinadailyproject.svg
        :target: https://travis-ci.com/yarving/chinadailyproject

.. image:: https://readthedocs.org/projects/chinadailyproject/badge/?version=latest
        :target: https://chinadailyproject.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status




Download China Daily newspaper PDF


* Free software: GNU General Public License v3
* Documentation: https://chinadailyproject.readthedocs.io.


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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


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