@socialgouv/get-html

1.1.1 • Public • Published

socialgouv/dashlord-actions/get-html

License: Apache-2.0 Npm version
Npm banner

Get HTML content from any URL, single-page or not, using puppeteer

Usage

npm

const { getHTML } = require("@socialgouv/get-html");

getHTML("https://wikipedia.org").then(console.log);

github-action

jobs:
  html:
    steps:
      - uses: "socialgouv/dashlord-actions/get-html@v1"
        with:
          url: https://wikipedia.org
          # optionals
          language: fr
          output: result.html
      - name: demo
        run: |
          cat result.html

Readme

Keywords

none

Package Sidebar

Install

npm i @socialgouv/get-html

Weekly Downloads

534

Version

1.1.1

License

Apache-2.0

Unpacked Size

2.44 kB

Total Files

4

Last publish

Collaborators

  • revolunet
  • socialgroovybot