Strategy
The strategy key defines how html2rss fetches a website’s content.
faraday(default): Makes a direct HTTP request. It is fast but does not execute JavaScript.browserless: Renders the website in a headless Chrome browser, which is necessary for JavaScript-heavy sites.
browserless
Section titled “browserless”To use the browserless strategy, you need a running instance of Browserless.io.
Docker
Section titled “Docker”You can run a local Browserless.io instance using Docker:
docker run \ --rm \ -p 3000:3000 \ -e "CONCURRENT=10" \ -e "TOKEN=6R0W53R135510" \ ghcr.io/browserless/chromiumConfiguration
Section titled “Configuration”Set the strategy to browserless in your feed configuration:
strategy: browserlessCommand-Line Usage
Section titled “Command-Line Usage”You can also specify the strategy on the command line:
# Set environment variables for your Browserless.io instanceBROWSERLESS_IO_WEBSOCKET_URL="ws://127.0.0.1:3000"BROWSERLESS_IO_API_TOKEN="6R0W53R135510"
# Use the browserless strategyhtml2rss feed --strategy=browserless my_config.ymlFor detailed documentation on the Ruby API, see the official YARD documentation.