Skip to main content

魔改使用工具库

Project description

来自

https://github.com/shengchenyang/AyugeSpiderTools/blob/master/docs//docs/intro/install.md

增加个人使用的模板

安装

python 3.8+ 可以直接输入以下命令:

pip install gzspidertools

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

pip install gzspidertools[database]

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

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-redis 爬虫脚本   pip install scrapy_redis-0.7.3-py2.py3-none-any.whl
gzcmd genspider <spider_name> <example.com>

# 运行脚本
scrapy crawl <spider_name>
# 注:也可以使用 gzcmd crawl <spider_name>

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.8.tar.gz (91.3 kB view details)

Uploaded Source

Built Distribution

gzspidertools-0.0.8-py3-none-any.whl (124.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gzspidertools-0.0.8.tar.gz
  • Upload date:
  • Size: 91.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Windows/10

File hashes

Hashes for gzspidertools-0.0.8.tar.gz
Algorithm Hash digest
SHA256 4dd916d512404b08f620c459e7d25864042faa83ad93373941eff1107a61d85e
MD5 78feb76de36d7e1726cddb4eb62cd927
BLAKE2b-256 c9c67c55e7e31a8d7816f94b463418a0f32bf3db997cd331bdc3fef504b95912

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gzspidertools-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 124.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Windows/10

File hashes

Hashes for gzspidertools-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1e9c2340c9531d8bd8047c95c199e58f25b28ee80b9931ebeafd230065995580
MD5 32169cf5d335044ae163a7d0b3ae60c0
BLAKE2b-256 eea97fff9c1160aecbed32d65cf80ac418fdc3f71853157fe2afef59eb64843c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page