Skip to main content

抓取网页基础信息(标题/描述/标题标签/链接/正文),不依赖网站官方 API

Project description

webinfo-scraper

抓取网页基础信息(标题、meta 描述、h1-h3 标题、链接、正文摘要),直接请求网页 HTML 并解析,不依赖网站官方 API。

使用方式

无需安装,直接运行:

uvx webinfo-scraper https://example.com

保存为 JSON 文件:

uvx webinfo-scraper https://example.com -o result.json

安装

pip install webinfo-scraper

安装后可直接使用命令 webinfo-scraper <url>

注意

抓取前请确认自己有权限访问目标网站,并遵守其 robots.txt 与使用条款。

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

webinfo_scraper-0.1.0.tar.gz (69.1 kB view details)

Uploaded Source

Built Distribution

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

webinfo_scraper-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file webinfo_scraper-0.1.0.tar.gz.

File metadata

  • Download URL: webinfo_scraper-0.1.0.tar.gz
  • Upload date:
  • Size: 69.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for webinfo_scraper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dacf5535ed9827d95804fde2437cb72cb0526b104247ba37bedb682ecc2ee0ba
MD5 12a94d2f61cca75aed3a60b26ae7988c
BLAKE2b-256 43379616f0f1dc5211a68081a24bc2ea1a7617119f44da8542043d620f3a07e4

See more details on using hashes here.

File details

Details for the file webinfo_scraper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: webinfo_scraper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for webinfo_scraper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8acd21791650cb9951311e158d190e4ab7cc85b018cbd886a03e56b9d0605bc6
MD5 2aace53777f1ea7221cb9b239d2c8899
BLAKE2b-256 8d56a42d38cd886ce4738eb41e005b1c85593ab3ce8172b0f70e9fd3bbc65c90

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