https://github.com/andrewn/browsershot
Command line tool to take screenshots of browser windows via PhantomJS or BrowserStack
https://github.com/andrewn/browsershot
Last synced: 10 months ago
JSON representation
Command line tool to take screenshots of browser windows via PhantomJS or BrowserStack
- Host: GitHub
- URL: https://github.com/andrewn/browsershot
- Owner: andrewn
- Created: 2016-05-25T17:26:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-22T08:30:12.000Z (about 10 years ago)
- Last Synced: 2025-07-06T01:42:32.333Z (12 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
browsershot
===
Take screenshots using Phantomjs or Browserstack APIs
CLI
---
browsershot [general options] [command options]
All commands require the `--backend` flag which chooses which service will be used to create the screenshots. If you don't have a Browserstack plan then `phantomjs` will work locally.
List available browsers:
browsershot --username myuser --key abc123 list
Take a screenshot and put it in the current directory:
browsershot --username myuser --key abc123 snap --url https://smallpdf.com
Take a screenshot and put it in another directory:
browsershot --username myuser --key abc123 snap --output-dir /tmp --url https://smallpdf.com
Read URLs from a file, one URL per file:
browsershot --username myuser --key abc123 snap --input-file ./urls.txt
All command-line arguments can also be read from file in JSON format:
browsershot --config ./conf.json list
$ cat ./conf.json
{
"username": "myuser",
"key": "abc123",
"backend": "browserstack-screenshot"
}