python-utils
python utils
ScreenShot
browser = get_browser('https://tushare.pro/document/2?doc_id=33')
# 移除悬浮
browser.execute_script("""
var toTop = document.querySelector('.scroll-to-top');
if(toTop){
toTop.remove();
}
""")
# 隐藏滚动条
browser.execute_script("""
var style = document.createElement('style');
style.innerHTML='body::-webkit-scrollbar{display:none;}';
document.querySelector('head').append(style);
""")
screen_shot = ScreenShot()
screen_shot.save_full_page_screen_shot('ts.jpg', browser=browser)
browser.quit()
Metadata
Release files for universal-utils 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| universal_utils-0.0.1.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| universal_utils-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.4 kB
Release files / universal_utils-0.0.1.tar.gz
| Download URL | universal_utils-0.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c2b28735c589b9314fd6fba64d8dbe54f04837efee9177212117dcc138ea0ff
|
|
BLAKE2b-256 checksum How to use checksums |
ccc85f4344bcf0e47656ca8382c2de0d9fd2e4bb8ea5a7da21549008147c7a40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0
|
Release files / universal_utils-0.0.1-py3-none-any.whl
| Download URL | universal_utils-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3409992ba0a16a7cf7aabf399d03293efeaf0351dd8cd8c97e0874da40aa580
|
|
BLAKE2b-256 checksum How to use checksums |
b9c7ee41f53c91ae57d21d4209e9d9b60022bd3096bce2fa7dfd9c8c922239fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0
|