juraj on Nostr: Just use it in headless mode: WebDriver errors - check if Chrome is installed and ...
Just use it in headless mode:
WebDriver errors - check if Chrome is installed and working
If you get WebDriver errors, first make sure that you can run the Chrome binary from the command line.
Replace /path/to/your/google-chrome with your path to Chrome.
/path/to/your/google-chrome e --headless --disable-gpu --dump-dom
https://bitcoin.org/ | head -n 20 | grep "Bitcoin"
The output should be something like:
<title>Bitcoin - Open source P2P money</title>
<meta name="description" content="Bitcoin is an innovative payment network and a new kind of money. Find all you need to know and get started with Bitcoin on bitcoin.org.">
If it does not work, use your operating system's package manager to install Chrome and all the required libraries.
Published at
2024-09-01 08:50:43Event JSON
{
"id": "d899b5947bf3224e1c3d60936126a7046e19e4c7cc4d9f1a381890942c052368",
"pubkey": "dab6c6065c439b9bafb0b0f1ff5a0c68273bce5c1959a4158ad6a70851f507b6",
"created_at": 1725180643,
"kind": 1,
"tags": [
[
"p",
"dab6c6065c439b9bafb0b0f1ff5a0c68273bce5c1959a4158ad6a70851f507b6"
],
[
"p",
"f5bcf31413c3a5334f2abb5e9e66e4691bd92b6e29a4068e8e9caf550507683d"
],
[
"e",
"7cfdb97a414bb1c54a83d104a026b4bd1fe14c5e52aac007307202d81722dbe4",
"wss://nostr.mom",
"root"
],
[
"e",
"1ec04902920f2e23dd2c9c82c36249eaa8d2d2318cb699725d9caa0df073d5b6",
"wss://nostr.mom",
"reply"
]
],
"content": "Just use it in headless mode:\n\nWebDriver errors - check if Chrome is installed and working\nIf you get WebDriver errors, first make sure that you can run the Chrome binary from the command line.\n\nReplace /path/to/your/google-chrome with your path to Chrome.\n\n/path/to/your/google-chrome e --headless --disable-gpu --dump-dom https://bitcoin.org/ | head -n 20 | grep \"Bitcoin\"\nThe output should be something like:\n\n\u003ctitle\u003eBitcoin - Open source P2P money\u003c/title\u003e\n\u003cmeta name=\"description\" content=\"Bitcoin is an innovative payment network and a new kind of money. Find all you need to know and get started with Bitcoin on bitcoin.org.\"\u003e\nIf it does not work, use your operating system's package manager to install Chrome and all the required libraries.",
"sig": "2ffa3bde4063ecc4dad5f5fe5ab23c244147b916f50567b4751deeaf038bee0e24eaa16d072929798e655fe1a75488af880e8382b3fee26d15c9ad0cc50ed65f"
}