Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Equivalent command for google-chrome --headless --dump-dom URL?

  • 2 답장
  • 1 이 문제를 만남
  • 6 보기
  • 최종 답변자: Culip

more options

I want to download a dynamically generated webpage. I don't think cURL, wget or Invoke-WebRequest command can do it.

In Google Chrome, the command below works:

$ google-chrome --headless --dump-dom https://foo.com > ./foo.html

Does the Firefox command-line mode have an equivalent tool?


So far I have checked

I want to download a dynamically generated webpage. I don't think cURL, wget or Invoke-WebRequest command can do it. In Google Chrome, the command below works: $ google-chrome --headless --dump-dom https://foo.com > ./foo.html Does the Firefox command-line mode have an equivalent tool? So far I have checked * https://developers.google.com/web/updates/2017/04/headless-chrome * https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options * https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode

글쓴이 Culip 수정일시

모든 댓글 (2)

more options

Maybe selecting the full web page (Ctrl+A) and using "View Selection Source" in the right-click context menu works to get the page source. You probably need to disable syntax highlighting to get clean page code.

You can also try the Inspector and select the HTML element and use "Copy > Outer HTML".

more options

cor-el said

Maybe selecting the full web page (Ctrl+A) and using "View Selection Source" in the right-click context menu works to get the page source.

No. See the question: I am asking about "the Firefox command-line mode" not the GUI. I want to call the firefox command from some scripts (Bash, PowerShell Core or Python) that read a list of URLs and download target contents in a batch process.

글쓴이 Culip 수정일시