MCPcopy Create free account
hub / github.com/WwwwwyDev/crawlipt

github.com/WwwwwyDev/crawlipt @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
136 symbols 498 edges 28 files ⚖ MIT 67 documented · 49% updated 2y agov0.1.4-alpha · 2024-05-11★ 1391 open issues

Browse by type

Functions 102 Types & classes 31 Endpoints 3
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 94
Class 31
Function 8
Route 3

Languages

Python100%

Modules by API surface

test.py21 symbols
crawlipt/script.py19 symbols
crawlipt/pojo.py12 symbols
crawlipt/actions/window.py7 symbols
crawlipt/actions/scroll.py7 symbols
crawlipt/actions/get.py7 symbols
crawlipt/error.py6 symbols
crawlipt/actions/click.py6 symbols
setup.py5 symbols
crawlipt/actions/util.py5 symbols
crawlipt/actions/switch.py5 symbols
crawlipt/conditions/presence.py4 symbols

For agents

$ claude mcp add crawlipt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page