Skip to content

Tsotsi/python_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages