TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Screenshoteer – Command-line website screenshots and mobile emulations

96 点作者 vladocar超过 6 年前

12 条评论

based2超过 6 年前
<a href="https:&#x2F;&#x2F;blog.nightly.mozilla.org&#x2F;2018&#x2F;08&#x2F;23&#x2F;screenshots-from-the-console&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.nightly.mozilla.org&#x2F;2018&#x2F;08&#x2F;23&#x2F;screenshots-from...</a><p><a href="https:&#x2F;&#x2F;support.mozilla.org&#x2F;en-US&#x2F;kb&#x2F;firefox-screenshots" rel="nofollow">https:&#x2F;&#x2F;support.mozilla.org&#x2F;en-US&#x2F;kb&#x2F;firefox-screenshots</a>
评论 #18667323 未加载
atum47超过 6 年前
why don&#x27;t just use chrome&#x2F;chromium without puppeteer?<p>google-chrome --headless --screenshot <a href="http:&#x2F;&#x2F;site.com" rel="nofollow">http:&#x2F;&#x2F;site.com</a><p>It&#x27;s a one line command.
评论 #18603391 未加载
fabrik42超过 6 年前
Very cool! I made something similar a while ago: <a href="https:&#x2F;&#x2F;github.com&#x2F;fabrik42&#x2F;responsive_mockups" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fabrik42&#x2F;responsive_mockups</a><p>My version is less configurable but wraps the screenshots in some beautiful mockups :)
ajnin超过 6 年前
Cool, I was just looking for something like this. A useful feature would be the possibility to screenshot a specific element only instead of the whole page (using something like <a href="https:&#x2F;&#x2F;github.com&#x2F;GoogleChrome&#x2F;puppeteer&#x2F;blob&#x2F;master&#x2F;docs&#x2F;api.md#elementhandlescreenshotoptions" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;GoogleChrome&#x2F;puppeteer&#x2F;blob&#x2F;master&#x2F;docs&#x2F;a...</a> ). Also an option to set the ouput filename is a must for scripting !
评论 #18600588 未加载
raminv超过 6 年前
I needed to crawl sitemaps, create snapshots in three device sizes (mobile, tablet and desktop) and compare my snapshots with their previous versions. I ended up creating this tool <a href="https:&#x2F;&#x2F;github.com&#x2F;raminv80&#x2F;webTimeMachine" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;raminv80&#x2F;webTimeMachine</a> it is not perfect but does the job. I might continue improving it if others find it useful.
leppr超过 6 年前
Maybe the interface could be simplified: you&#x27;re always going to give it URLs so you can allow those as non-option arguments (also can you pass it multiple URLs?).
评论 #18600329 未加载
tronko超过 6 年前
Nice small project. This uses a chrome-headless on the background to perform the screenshot, isn&#x27;t it?<p>Also, you have included a .DS_Store file in your repository.
评论 #18599165 未加载
rgrieselhuber超过 6 年前
Adding a click-accept feature would be great, so it can automatically click GDPR notices, popup email subscribe boxes, etc.
评论 #18604077 未加载
flanbiscuit超过 6 年前
Nice. I made something almost exactly like this using puppeteer as well except it took screenshots of all the pages of a site. It crawled first getting all site pages, then created a JSON config file that would be used to take screenshots with. I should really throw this up on GitHub as well.<p>Funnily enough, I called mine: Screenshotr
评论 #18601167 未加载
评论 #18599353 未加载
beepboopah超过 6 年前
A similar thing I wrote one evening lol <a href="https:&#x2F;&#x2F;github.com&#x2F;Weston-Boldt&#x2F;webscrot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Weston-Boldt&#x2F;webscrot</a>
philipov超过 6 年前
I like this. Your motto should be &quot;How do I screenshot web?&quot;
mbrumlow超过 6 年前
Read no further than &#x27;npm&#x27;...