Skip to main content

crawlist

crawlipt

The script for selenium in python

pypi python GitHub stars

introduction

You can use crawlipt to driver the selenium by script in python.The script adopts JSON format for better cross language operations and physical storage.

installing

You can use pip or pip3 to install the crawlipt

pip install crawlipt or pip3 install crawlipt

If you have already installed crawlipt, you may need to update to the latest version

pip install --upgrade crawlipt

quickly start

from webdriver_manager.chrome import ChromeDriverManager
from selenium import webdriver as wd
from selenium.webdriver.chrome.service import Service
import crawlipt as cpt
option = wd.ChromeOptions()
option.add_argument("start-maximized")
option.add_argument("window-size=1920x3000")
agent = 'user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"'
option.add_argument(agent)
webdriver = wd.Chrome(service=Service(ChromeDriverManager().install()), options=option)

# Define scripts
# You can also deserialize JSON strings into a dictionary
script = {
    "method": "redirect",
    "url": "https://www.baidu.com/",
    "next": {
        "method": "input",
        "xpath": "//*[@id=\"kw\"]",
        "keyword": "和泉雾纱",
        "next": {
            "method": "click",
            "xpath": "//*[@id=\"su\"]"
        }
    }
}
# Execute script
cpt.Script(script, interval=2)(webdriver)

Documenting

If you are interested and would like to see more detailed documentation, please click on the link below.

中文|English

Contributing

Please submit pull requests to the develop branch

Metadata

Release files for crawlipt 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crawlipt 0.1.4
File Size Uploaded
crawlipt-0.1.4.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crawlipt 0.1.4
File Interpreter ABI Platform
crawlipt-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 37.3 kB

Release files / crawlipt-0.1.4.tar.gz

Download URL crawlipt-0.1.4.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
962079192ea47fcbf483e483eed8aa51064cd36fc0584b796158cb46cd4b062e
BLAKE2b-256 checksum
How to use checksums
9a2e5e3f22a067032786a5966c9ac1a06871c810f913e744935addc88566817e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / crawlipt-0.1.4-py3-none-any.whl

Download URL crawlipt-0.1.4-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eb9686d04fa93987782e9d8cd1b88cd8b4d3dabfccd3e28b1abfbe56663226f
BLAKE2b-256 checksum
How to use checksums
911447e9e59a7e582791283f54731ad5597164962563606acfda2a778616acec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page