web helper
Project description
说明
playwright助手,内置函数
win系统如需控制隐藏窗口,需安装pywin32
试一试
from easy_pyweb.wb_helpers import WebHelper
def open_page():
wb = WebHelper(cookie_path='cookies.txt')
page = wb.new_page()
page.goto('https://tool.lu/timestamp/')
print(page.title())
assert page.title() == '时间戳(Unix timestamp)转换工具 - 在线工具'
打包操作
需要安装包 pip install build twine
执行打包 python -m build
推送分支[testpypi|pypi]
python -m twine upload --repository testpypi dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_pyweb-0.0.5.tar.gz
(21.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easy_pyweb-0.0.5.tar.gz.
File metadata
- Download URL: easy_pyweb-0.0.5.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b89521f774ef6fabac8a51af0896464bb218078a31dcc790602f75dc183bffec
|
|
| MD5 |
93b8f564961bde1d5a2d2ea4f3ca1005
|
|
| BLAKE2b-256 |
1b7f6adecdeb4f94d79b1a264529f074ebba8e3f9c677d283aa751f563ea94b6
|
File details
Details for the file easy_pyweb-0.0.5-py3-none-any.whl.
File metadata
- Download URL: easy_pyweb-0.0.5-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d2d2b0629898df937481b36afb54810fbeaf5925c47b5889c8645822f6a8b2d
|
|
| MD5 |
d80fdc0b9c27dd6b22ae09028e1373b0
|
|
| BLAKE2b-256 |
635e2ca494917480a166449f4b6eb641df7d57072e187d9c79d64d38d2897f6e
|