Skip to main content

Selenium和requests的简单结合实现

Project description

Husky Spider utils

介绍

本库简单实现了 Selenium 和 requests 的结合,并封装了少部分常用 Selenium 功能。使用 SeleniumSession 相关方法会自动更新 cookies(session 和 selenium 互通)。

使用

中文教程

pip install husky-spider-utils

国内源

pip install husky-spider-utils -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
from husky_spider_utils import SeleniumSession

session = SeleniumSession(selenium_init_url="https://cn.bing.com")
session.selenium_get("https://cn.bing.com")

基于该库的脚本(项目)

第三方基于该库实现的项目可以联系作者挂在本页

更新日志

0.1.6

  • 新增HuskySpider类
  • 封装配置文件加载
  • 多任务处理器(支持多线程或单线程处理或展示)

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

husky_spider_utils-0.1.6.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

husky_spider_utils-0.1.6-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file husky_spider_utils-0.1.6.tar.gz.

File metadata

  • Download URL: husky_spider_utils-0.1.6.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for husky_spider_utils-0.1.6.tar.gz
Algorithm Hash digest
SHA256 2026bb42b003be1e874cd0213739d7769bd2fff6b010896825306a92ca6e718a
MD5 867ac0a2c3b584ca208d26b541da65a9
BLAKE2b-256 14434f028018f08d2912a1aff6af83aff11667cd91423766ccbeb298ecf3b546

See more details on using hashes here.

File details

Details for the file husky_spider_utils-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for husky_spider_utils-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 555d2b00dcd67c7523aac8c88365e8c20eb14c3d880380fe57090b288925dc73
MD5 19c31fb315b5f7a70fb5d8a76e036939
BLAKE2b-256 100eae1abb80a519e5b75119b5ffc63fbabf40f60b797659f61af2632eb83a23

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