Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for universal-utils, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size universal_utils-0.0.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View
Filename, size universal_utils-0.0.1-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page