{"id":19848416,"url":"https://github.com/wwwwwydev/crawlipt","last_synced_at":"2025-04-07T12:09:19.562Z","repository":{"id":234392694,"uuid":"788804597","full_name":"WwwwwyDev/crawlipt","owner":"WwwwwyDev","description":"The script for selenium in python. Make automated testing easier! 使用json脚本驱动selenium","archived":false,"fork":false,"pushed_at":"2024-06-06T09:47:45.000Z","size":351,"stargazers_count":164,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T10:08:33.871Z","etag":null,"topics":["crawling-python","crawlipt","reptile","selenium","selenium-python","test-automation","testing-tools"],"latest_commit_sha":null,"homepage":"https://wwydev.gitbook.io/crawlipt","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WwwwwyDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T05:48:58.000Z","updated_at":"2025-03-14T01:44:21.000Z","dependencies_parsed_at":"2024-05-02T12:28:20.108Z","dependency_job_id":"43809cfa-fe2d-49ff-8bc5-9abc4c5971f7","html_url":"https://github.com/WwwwwyDev/crawlipt","commit_stats":null,"previous_names":["wwwwwydev/crawlipt"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WwwwwyDev%2Fcrawlipt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WwwwwyDev%2Fcrawlipt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WwwwwyDev%2Fcrawlipt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WwwwwyDev%2Fcrawlipt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WwwwwyDev","download_url":"https://codeload.github.com/WwwwwyDev/crawlipt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crawling-python","crawlipt","reptile","selenium","selenium-python","test-automation","testing-tools"],"created_at":"2024-11-12T13:17:09.556Z","updated_at":"2025-04-07T12:09:19.531Z","avatar_url":"https://github.com/WwwwwyDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD033 MD041 --\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/WwwwwyDev/crawlipt\"\u003e\u003cimg src=\"https://s2.loli.net/2024/05/10/PCcpwynVMmURjBv.png\" alt=\"crawlist\" style=\"width:50%; height:50%\" \u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# crawlipt\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable-next-line MD036 --\u003e\nThe script for selenium in python\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/crawlipt\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/crawlipt\" alt=\"pypi\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/python-3.10.0+-blue\" alt=\"python\"\u003e\n  \u003ca href=\"https://github.com/WwwwwyDev/crawlipt/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/WwwwwyDev/crawlipt\" alt=\"GitHub stars\"style=\"max-width: 100%;\"\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n\n## introduction\n\nYou can use crawlipt to driver the selenium by script in python.The script adopts JSON format for better cross language operations and physical storage.\n\n## installing\nYou can use pip or pip3 to install the crawlipt\n\n`pip install crawlipt` or `pip3 install crawlipt`\n\nIf you have already installed crawlipt, you may need to update to the latest version\n\n`pip install --upgrade crawlipt`\n\n## quickly start\n```python\nfrom webdriver_manager.chrome import ChromeDriverManager\nfrom selenium import webdriver as wd\nfrom selenium.webdriver.chrome.service import Service\nimport crawlipt as cpt\noption = wd.ChromeOptions()\noption.add_argument(\"start-maximized\")\noption.add_argument(\"window-size=1920x3000\")\nagent = '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\"'\noption.add_argument(agent)\nwebdriver = wd.Chrome(service=Service(ChromeDriverManager().install()), options=option)\n\n# Define scripts\n# You can also deserialize JSON strings into a dictionary\nscript = {\n    \"method\": \"redirect\",\n    \"url\": \"https://www.baidu.com/\",\n    \"next\": {\n        \"method\": \"input\",\n        \"xpath\": \"//*[@id=\\\"kw\\\"]\",\n        \"keyword\": \"和泉雾纱\",\n        \"next\": {\n            \"method\": \"click\",\n            \"xpath\": \"//*[@id=\\\"su\\\"]\"\n        }\n    }\n}\n# Execute script\ncpt.Script(script, interval=2)(webdriver)\n\n```\n\n\n## Documenting\nIf you are interested and would like to see more detailed documentation, please click on the link below.\n\n[中文](https://wwydev.gitbook.io/crawlipt-zh \"中文文档\")|[English](https://wwydev.gitbook.io/crawlipt \"English Document\")\n\n## Contributing\nPlease submit pull requests to the develop branch","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwwwwydev%2Fcrawlipt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwwwwwydev%2Fcrawlipt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwwwwydev%2Fcrawlipt/lists"}