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.

Source Distribution

universal_utils-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

universal_utils-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file universal_utils-0.0.1.tar.gz.

File metadata

  • Download URL: universal_utils-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for universal_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2c2b28735c589b9314fd6fba64d8dbe54f04837efee9177212117dcc138ea0ff
MD5 f4b8302b7b042171f48cc0a53b9df51b
BLAKE2b-256 ccc85f4344bcf0e47656ca8382c2de0d9fd2e4bb8ea5a7da21549008147c7a40

See more details on using hashes here.

File details

Details for the file universal_utils-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: universal_utils-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for universal_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3409992ba0a16a7cf7aabf399d03293efeaf0351dd8cd8c97e0874da40aa580
MD5 0a0fad818d3047d3f3ee5eb49a373d3c
BLAKE2b-256 b9c7ee41f53c91ae57d21d4209e9d9b60022bd3096bce2fa7dfd9c8c922239fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page