Skip to main content

Scrapy Tools

Project description

概述

一句话介绍:用于扩展 Scrapy 功能来解放双手。

安装

可以直接输入以下命令:

.. code:: bash

pip install gzspidertools


可选安装1,安装数据库相关的所有依赖:

.. code:: bash

pip install gzspidertools[database]


可选安装2,通过以下命令安装所有依赖:

.. code:: bash

pip install gzspidertools[all]

注:详细的安装介绍请查看 安装指南_。

用法

开发人员只需根据命令生成示例模板,再配置相关设置即可。

查看库版本

gzcmd version

创建项目

gzcmd startproject <project_name>

进入项目根目录

cd <project_name>

替换(覆盖)为真实的配置 .conf 文件:

这里是为了演示方便,正常情况是直接在 VIT 中的 .conf 文件填上你需要的配置即可

cp /root/mytemp/.conf DemoSpider/VIT/.conf

生成爬虫脚本

gzcmd genspider <spider_name> <example.com>

运行脚本

scrapy crawl <spider_name>

注:也可以使用 gzcmd crawl <spider_name>

=======

uv

uv 安装更新

pip install --upgrade uv

uv sync

build

uv build

uv publish

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

gzspidertools-0.0.29.tar.gz (87.0 kB view details)

Uploaded Source

Built Distribution

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

gzspidertools-0.0.29-py3-none-any.whl (127.5 kB view details)

Uploaded Python 3

File details

Details for the file gzspidertools-0.0.29.tar.gz.

File metadata

  • Download URL: gzspidertools-0.0.29.tar.gz
  • Upload date:
  • Size: 87.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for gzspidertools-0.0.29.tar.gz
Algorithm Hash digest
SHA256 b68c03965c29f5c59c36477ab6858a833b3ef72121a59e050e83595029e2d3f7
MD5 7ffe86ecb5402d89fe7ae292ba1714aa
BLAKE2b-256 92bbf3b1b44c2459de7c964f86a85478efcc2c55b082a975f239c867895e4362

See more details on using hashes here.

File details

Details for the file gzspidertools-0.0.29-py3-none-any.whl.

File metadata

File hashes

Hashes for gzspidertools-0.0.29-py3-none-any.whl
Algorithm Hash digest
SHA256 6d99d20b8e0a48d55bad2d1ca848608a56d8026db2f028f2badbe6ed458d74b9
MD5 cc9201104dad6d4e51f6b32d36fd1e36
BLAKE2b-256 61042f4289c86fee7179872b04d21eb4d252fb8438e152c9b9abdd6fd577e902

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