Title: Remote Chrome for puppeteer instance for JavaScript rendering · Issue #262 · roach-php/core · GitHub
Open Graph Title: Remote Chrome for puppeteer instance for JavaScript rendering · Issue #262 · roach-php/core
X Title: Remote Chrome for puppeteer instance for JavaScript rendering · Issue #262 · roach-php/core
Description: Description You use Browsershot to reach out to a puppeteer instance and then a headless instance of Chrome. Browsershot has the ability to use a remote instance of headless Chrome, for instance something like Browserless. https://spatie...
Open Graph Description: Description You use Browsershot to reach out to a puppeteer instance and then a headless instance of Chrome. Browsershot has the ability to use a remote instance of headless Chrome, for instance so...
X Description: Description You use Browsershot to reach out to a puppeteer instance and then a headless instance of Chrome. Browsershot has the ability to use a remote instance of headless Chrome, for instance so...
Opengraph URL: https://github.com/roach-php/core/issues/262
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remote Chrome for puppeteer instance for JavaScript rendering","articleBody":"**Description**\r\nYou use Browsershot to reach out to a puppeteer instance and then a headless instance of Chrome. Browsershot has the ability to use a remote instance of headless Chrome, for instance something like Browserless. https://spatie.be/docs/browsershot/v4/miscellaneous-options/connection-to-a-remote-chrome-instance\r\n\r\n To my understanding, at the moment, Roach does not enable this functionality. It would be useful to allow for better management of servers, not running chrome on the server that is storing the data. \r\n\r\n**Proposed solution**\r\nI already wrote a solution, this is more or less asking if you’d like a PR. It’s a one file change as it stands, ExecuteJavascriptMiddleware.php that checks for the existence of some environment variables, and if they exist, set up to use the remote instance of Chrome with Browsershot. I’d be down to tweak it if there is some other method you’d prefer, but it is working via an override, I’d love to make it official. \r\n\r\n**Considered alternatives**\r\nGiven I have a one file change that works for me currently I haven’t really thought of alternatives.\r\n\r\n**Additional context**\r\nHaving Chrome be on a different server than the server hosting my site gives good separation of concerns, on top of allowing the scraping to occur on a different IP address than the server hosting my site. ","author":{"url":"https://github.com/Waffleophagus","@type":"Person","name":"Waffleophagus"},"datePublished":"2024-11-24T16:56:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/262/core/issues/262"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:893c8265-8a1c-e4a5-260d-8694c05cb6a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDEE:17C28D:1A6B6A5:2157033:69917BB1 |
| html-safe-nonce | 11d8e856ea3be6577b1c45603be48d21ffd275dc90fd23f258f7a1a97af499d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREVFOjE3QzI4RDoxQTZCNkE1OjIxNTcwMzM6Njk5MTdCQjEiLCJ2aXNpdG9yX2lkIjoiMzQ4NTcwMDI4NjI3MzgzNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4b3c55d6a95bef01fb6b948b2e71e49979a75ce4eca4eab86ea7d7539589831e |
| hovercard-subject-tag | issue:2688034114 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/roach-php/core/262/issue_layout |
| twitter:image | https://opengraph.githubassets.com/850f6399f099187266692b025ff80a719654c249bdc544ba4e4a5090a4563d43/roach-php/core/issues/262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/850f6399f099187266692b025ff80a719654c249bdc544ba4e4a5090a4563d43/roach-php/core/issues/262 |
| og:image:alt | Description You use Browsershot to reach out to a puppeteer instance and then a headless instance of Chrome. Browsershot has the ability to use a remote instance of headless Chrome, for instance so... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Waffleophagus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/roach-php/core git https://github.com/roach-php/core.git |
| octolytics-dimension-user_id | 88873474 |
| octolytics-dimension-user_login | roach-php |
| octolytics-dimension-repository_id | 397134075 |
| octolytics-dimension-repository_nwo | roach-php/core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 397134075 |
| octolytics-dimension-repository_network_root_nwo | roach-php/core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width