web4ai
v0.0.14
Published
An easy-to-use interface to convert any website into Ai ready data, like Mardown, Pdf, screenshots and more.
Downloads
8
Maintainers
Readme
web4ai
web4ai is an npm package designed to fetch and process web pages using Puppeteer. It provides a flexible and configurable way to capture HTML, PDF, screenshots, and markdown from web pages.
Installation
Install the package using npm:
npm install web4aiOr using pnpm:
pnpm add web4aiUsage
import { loadWeb } from 'web4ai';
const context = {
page1: {
url: 'https://example.com',
run: async (page) => {
// Custom script to run on the page
},
},
};
loadWeb(context).then((responses) => {
console.log(responses);
});Documentation
For detailed documentation, please refer to the API Documentation.
Adding Documentation
To add or update the documentation, follow these steps:
- Go to the wiki of the repository.
- Create a new page or edit an existing page.
- Use Markdown to format the documentation.
- Save the changes.
Contributing
Contributions are welcome! Please read the contribution guidelines first.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you like this project, help us maintain it and create more awesome projects by donating:

Author
Vindao - [email protected]
