Metadata-Version: 2.1
Name: hay
Version: 0.0.5
Summary: 基于pyppeteer的chromenium操控库
Home-page: https://github.com/oldlwhite/hay
Author: 白旭东,储国庆
Author-email: 2216403312@qq.com
License: UNKNOWN
Description: ## 这是一个基于pyppeteer操控chromenium的库

        ` from hay import puppet `

        ` b=puppet.browser(headless=True,ignoreHTTPSErrors=True) ` 

        + 创建一个浏览器，

           - 默认参数headless=True,bool开启无头浏览器

           - 默认参数ignoreHTTPSErrors=True，忽略https错误

        ` b.goto(url,timeout=20,wait=False) `

        + 打开网址 

           - 必须参数url，

           - 默认参数 timeout=20，等待加载完毕最高等待20秒

           - 默认参数 waitlevel=1, 等待级别，0为domload 触发事件结束,1为load 触发事件结束,2为连接数量不超过2个结束,3为没有连接结束参数给定列表多值，则触发所有列表内事件结束

        ` b.content `  

        + 返回网页源码

        ` b.cookies `   

        + 返回cookies 

        ` b.send(selector,text)`

        + 对网页元素发送内容

           - 必须参数selecotr, css选择器

           - 必须参数text    ,发送的内容

        ` b.click(selector,waitlevel=1,timeout=20) ` 

        + 点击网页元素

           - 必须参数 selecotr ,css选测器

           - 默认参数 timeout=20，默认等待20秒

           - 默认参数 waitlevel=1, 等待级别，0为domload 触发事件结束,1为load 触发事件结束,2为连接数量不超过2个结束,3为没有连接结束参数给定列表多值，则触发所有列表内事件结束

        ` b.exit() `

        + 关闭浏览器
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
