Metadata-Version: 2.1
Name: hay
Version: 0.0.3
Summary: 基于pyppeteer的chromenium操控库
Home-page: https://github.com/oldlwhite/hay
Author: 白旭东,储国庆
Author-email: 2216403312@qq.com
License: BSD
Description: 这是一个操控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为没有连接结束参数给定列表多值，则触发所有列表内事件结束

        

        

        

        

        

        

        

        

        

        

        

        

        

        

        

        

        

        

        >

        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
