Skip to main content

Selenium和requests的简单结合实现

Project description

Husky Spider utils

安装

pip uninstall husky-spider-utils
pip install husky-spider-utils

介绍

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

使用

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

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.0.6.tar.gz (4.1 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.0.6-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: husky_spider_utils-0.0.6.tar.gz
  • Upload date:
  • Size: 4.1 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.0.6.tar.gz
Algorithm Hash digest
SHA256 9e51eb49227a23a6fe09c1709f69808067fe14e00bb8a6af6365237bda1f7b5f
MD5 c0fde373d97d68ac6588145ea8c5134e
BLAKE2b-256 8301636b367bf016a1679f689b89678cbf47584a27b8fecbcb682ddf4cb36b2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for husky_spider_utils-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 90e425ed0e44369df909212b8707ddb77e82addbaacdaf2a07b3c5e6ebc9b5d2
MD5 950abc71488cd82cf35dc954d768a445
BLAKE2b-256 2d984516ad3382ce436aaed0750cb7ac72ecd024a818d810824a5c866d2c2cf7

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