Firefox を headlessで起動
Xvfbが不要になってありがたい。
起動
起動
firefox --headless \
"https://yahoo.co.jp"
画面キャプチャ
起動
firefox --headless \
--screenshot "a.png" \
"https://yahoo.co.jp"
firefoxが既に起動しています の対応
- profile を新規で指定すればよい。
起動
mkdir ./profile/
firefox --headless \
--profile ./profile/ \
--screenshot "a.png" \
"https://yahoo.co.jp"
*** You are running in headless mode.
表示を消す
この表示を消したい場合は以下
起動
firefox --headless \
--profile ./profile/ \
--screenshot "a.png" \
"https://yahoo.co.jp" 2>/dev/null
Author And Source
この問題について(Firefox を headlessで起動), 我々は、より多くの情報をここで見つけました https://qiita.com/tukiyo3/items/91ba93e08112ff8eafb4著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .