V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
sethverlo
V2EX  ›  问与答

有没有能把比较长的页面分别用 IE/Firefox/Chrome 渲染然后分别保存为一张长图片的 python 库?

  •  
  •   sethverlo · Aug 7, 2013 · 3187 views
    This topic created in 4651 days ago, the information mentioned may be changed or developed.
    4 replies    1970-01-01 08:00:00 +08:00
    otakustay
        1
    otakustay  
       Aug 7, 2013   ❤️ 1
    首先你电脑里得装了IE、Firefox和Chrome,然后你可以用selenium试一下,但挺慢的
    http://stackoverflow.com/questions/3422262/take-a-screenshot-with-selenium-webdriver
    mozillazg
        2
    mozillazg  
       Aug 7, 2013 via Android   ❤️ 1
    phantomjs
    sethverlo
        3
    sethverlo  
    OP
       Aug 7, 2013
    @otakustay 但是如果是长图的话每次只能截取可见的一部分……
    otakustay
        4
    otakustay  
       Aug 7, 2013   ❤️ 1
    长图确实不行,你得自己写代码,让它截一张后滚动一屏幕,再截一张……然后拼起来,没找到有现成的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2371 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    ♥ Do have faith in what you're doing.