Skip to main content

Article Crawler

PyPI Latest Release PyPI Downloads

English Doc | 中文文档

✨ Introduction

Article Crawler is a package used to crawl articles with Markdown format from a specific webpage and store them locally in HTML / Markdown formats.

🚀 Quick Start

  1. Install through pip

    pip install article-crawler
    
  2. Usage

    Usage: python3 -m article_crawler -u [url] -t [type] -o [output_folder] -c [class_] -i [id]

    Options:
      --version             show program's version number and exit
      -h, --help            show this help message and exit
      -u URL, --url=URL     crawled url (required)
      -t TYPE, --type=TYPE  crawled article type [csdn] | [juejin] | [zhihu] | [jianshu]
      -o OUTPUT_FOLDER, --output_folder=OUTPUT_FOLDER
                            output html / markdown / pdf folder (required)
      -w WEBSITE_TAG, --website_tag=WEBSITE_TAG
                            position of the article content in HTML (not required if 'type' is specified)
      -c CLASS_, --class=CLASS_
                            position of the article content in HTML (not required if 'type' is specified)
      -i ID, --id=ID        position of the article content in HTML (not required if 'type' is specified)
    
    • type: Specific websites, currently supported are CSDN, Zhihu, Juejin, and Jianshu.

    • website_tag / class_ / id:

      e.g. <div id="article_content" class="article_content clearfix"></div>

      • In this element, website_tag, class_, id is div, article_content clearfix, article_content respectively.
      1. You don't need to specify type when you specify website_tag / class_ / id.
      2. You need to use the web console to locate the position of the article.
      3. website_tag / class_ / id is used to locate the position of the article in HTML. It is possible to only use one or two of them instead of all.

Open Source License

MIT License see https://opensource.org/license/mit/

Metadata

Release files for article-crawler 0.0.4

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

Source distribution (sdist)

Source distribution for article-crawler 0.0.4
File Size Uploaded Provenance
article_crawler-0.0.4.tar.gz 7.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for article-crawler 0.0.4
File Interpreter ABI Platform
article_crawler-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / article_crawler-0.0.4.tar.gz

Download URL article_crawler-0.0.4.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bae481259fbc896014cf02c79bb169519451bc4dfa5ef29ee5f35d0492e6aadb
BLAKE2b-256 checksum
How to use checksums
b1e84f3811daa9fea55b4e483e3073ab059d79202fbc8b6ebdb0d797987a6437
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / article_crawler-0.0.4-py3-none-any.whl

Download URL article_crawler-0.0.4-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f388713e3d22526bb68404044f16af0652536ba817db3a125c48c9a4a69578a8
BLAKE2b-256 checksum
How to use checksums
fe758abcf946d3c03680a6ee1ff46ca855e82d20fca8da13b7879d1af1f51470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for article-crawler 0.0.4

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.

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