8000 GitHub - KarpelesLab/klbfw-dynfetch
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

KarpelesLab/klbfw-dynfetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@karpeleslab/klbfw-dynfetch

A utility for fetching dynamically rendered HTML content from websites using Puppeteer.

Usage with npx

You can run this tool directly 7414 without installation using npx:

npx @karpeleslab/klbfw-dynfetch <url>

Example:

npx @karpeleslab/klbfw-dynfetch https://example.com

This will output the fully rendered HTML after JavaScript execution.

Installation

Global Installation

npm install -g @karpeleslab/klbfw-dynfetch

Then you can use it as:

klbfw-dynfetch <url>

Local Installation

npm install @karpeleslab/klbfw-dynfetch

Programmatic Usage

You can also use this package programmatically in your code:

const { fetchRenderedHtml } = require('@karpeleslab/klbfw-dynfetch');

fetchRenderedHtml('https://example.com')
  .then(html => {
    console.log(html);
  })
  .catch(error => {
    console.error('Error:', error);
  });

Development

Clone the repository and install dependencies:

git clone https://github.com/karpeleslab/klbfw-dynfetch.git
cd klbfw-dynfetch
npm install

Run locally:

npm start <url>

or

node src/index.js <url>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0