All Projects → jabbalaci → screenshot.py

jabbalaci / screenshot.py

Licence: MIT license
Taking a screenshot of a webpage.

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to screenshot.py

Gastly
👻 Create screenshots or previews of web pages
Stars: ✭ 89 (+81.63%)
Mutual labels:  screenshot, phantomjs
siteshooter
📷 Automate full website screenshots and PDF generation with multiple viewport support.
Stars: ✭ 63 (+28.57%)
Mutual labels:  screenshot, phantomjs
Argus Eyes
A lightweight commandline tool for visual regression testing of UI components.
Stars: ✭ 158 (+222.45%)
Mutual labels:  screenshot, phantomjs
Browsershot
Convert HTML to an image, PDF or string
Stars: ✭ 3,526 (+7095.92%)
Mutual labels:  screenshot, phantomjs
Screenshot Stream
Capture screenshot of a website and return it as a stream
Stars: ✭ 228 (+365.31%)
Mutual labels:  screenshot, phantomjs
ScreenEat
screenshot made delicious
Stars: ✭ 54 (+10.2%)
Mutual labels:  screenshot
web-crawler
Python Web Crawler with Selenium and PhantomJS
Stars: ✭ 19 (-61.22%)
Mutual labels:  phantomjs
dotfiles
My amazing vim, zsh and tmux config files
Stars: ✭ 25 (-48.98%)
Mutual labels:  screenshot
slip
Select and upload screenshots, gifs, and screencasts to imgur and gfycat with help of slop.
Stars: ✭ 25 (-48.98%)
Mutual labels:  screenshot
LAN-Messenger
Official open-source repository for LAN Messenger
Stars: ✭ 17 (-65.31%)
Mutual labels:  screenshot
qunit-phantomjs-runner
A PhantomJS-powered headless test runner for QUnit
Stars: ✭ 69 (+40.82%)
Mutual labels:  phantomjs
ModernSimpleProfileUI
Design a Modern Simple Profile UI with Constraint Layout in Android Studio 3.1 Canary 6
Stars: ✭ 24 (-51.02%)
Mutual labels:  screenshot
puppet-master
Puppeteer as a service hosted on Saasify.
Stars: ✭ 25 (-48.98%)
Mutual labels:  screenshot
ScreenshotToClipboard
Screenshots taken are copied to the clipboard.
Stars: ✭ 28 (-42.86%)
Mutual labels:  screenshot
Dhalang
Generate PDFs and make screenshots of HTML using Puppeteer in Ruby
Stars: ✭ 41 (-16.33%)
Mutual labels:  screenshot
record-desktop
🎥 Effortless GIFs and screenshots on Linux, built with Electron.
Stars: ✭ 65 (+32.65%)
Mutual labels:  screenshot
toster
DSL framework for testing Android apps
Stars: ✭ 31 (-36.73%)
Mutual labels:  screenshot
karma-detect-browsers
Karma runner plugin for detecting all browsers installed on the current system.
Stars: ✭ 44 (-10.2%)
Mutual labels:  phantomjs
frida-screenshot
Grab screenshots using Frida.
Stars: ✭ 35 (-28.57%)
Mutual labels:  screenshot
yaf
Yet another system fetch that is minimal and customizable
Stars: ✭ 23 (-53.06%)
Mutual labels:  screenshot

screenshot.py

Taking a screenshot of a webpage.

screenshot.py is a wrapper script that calls phantomjs and convert to do the real job. The advantage of screenshot.py is its very simple usage.

Usage

  • screenshot.py -h

    Help.

  • screenshot.py -full http://reddit.com full.jpg

    Screenshot of the entire page (can be very high).

  • screenshot.py -window http://reddit.com window.jpg

    Screenshot of the area that you see in the browser.

  • screenshot.py -thumb http://reddit.com thumb.jpg

    Thumbnail of the area that you see in the browser.

  • Sometimes there is a problem with the JavaScript on the given webpage, which can cause PhantomJS to crash :( In this case disable JS rendering with the --nojs extra option. Then use the script as explained above.

    Example:

    screenshot.py --nojs -thumb http://buggy-js.com thumb.jpg

Customization

Check out the beginning of the source code. You may want to change WIDTH and THUMB_WIDTH.

Requirements

screenshot.py relies on PhantomJS and the command convert. convert is part of the ImageMagick package. See http://phantomjs.org/build.html for more information on how to install PhantomJS. We also need the rasterize.js script that comes with PhantomJS. You can find a copy of it in the assets/ folder. I also put a customized version of the rendering script to the assets/ folder called rasterize-nojs.js that disables JavaScript rendering on the given webpage.

Author / Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].