python utils
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
universal_utils-0.0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for universal_utils-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3409992ba0a16a7cf7aabf399d03293efeaf0351dd8cd8c97e0874da40aa580 |
|
MD5 | 0a0fad818d3047d3f3ee5eb49a373d3c |
|
BLAKE2b-256 | b9c7ee41f53c91ae57d21d4209e9d9b60022bd3096bce2fa7dfd9c8c922239fc |