A tool to screenshot websites automatically that has a queue system.
- Make sure you have Bun installed
- Install packages by running
bun install
- Modify config.json to your liking
-
screenshotDir
Directory path to store screenshots, example:
"screenshots"
-
userAgent
The User-Agent the browser will use, example:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
-
browserPath
Path to installed browser, example:
"C:\\\\Program Files\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe"
-
retryLimit
Limit how many times to retry on error before skipping, example:
1
-
viewportHeight
Screenshot height, example:
1920
-
viewportWidth
Screenshot width, example:
1080
-
headless
Runs browser in headless mode, options:
true
andfalse
, example:true
-
dumpio
Outputs browser's stdout and stderr, options:
true
andfalse
, example:false
-
browser
Browser type that is used (make sure this matches with the browser set on browserPath), option:
chrome
, example:chrome
-
keepHistoryOnClear
Clears console but keeps scrollback history intact, options:
true
andfalse
, example:false
Run bun index.js
add <URL>
Adds a URL to the databaseimport <file>
Imports a text file and adds URL(s) splitted by new line to the databasestart
Start or resume job(s)pause
Pauses job(s)clear
Clears screen on terminalexit
Close browser and database then exits
- Try catch handler for process sites function
- Bypass Cloudflare UAM
- Make UI
- Support command arguments
- Support other browsers