0.0.10 • Published 2 years ago
@lexjs/web-search-test v0.0.10
Web Search
Web Search is a Node.js package for making browser web queries. It allows using different browsers, browser profiles, search engines and websites through a configurable CLI application or as a JavaScript API.
CLI
To use the CLI, install the package globally:
After installing, the web
command is ready to use without any initial setup.
> https://google.com/search?q=hello world
To check the installed version, use the --version
option:
Visit CLI documentation for more details.
API
To use the library programmatically, install it locally in your project:
Web Search is pure ESM and does not provide CommonJS exports.
import WebSearch from "@lexjs/web-search";
// create a WebSearch instance
const ws = new WebSearch({ ...options });
// open web queries
ws.open();
// log created URLs
ws.urls.forEach((url) => {
console.log(url);
});
Visit API Documentation for more details.