sethverlo
V2EX  ›  问与答

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

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