@nire0510/wql-cli

2.0.1 • Public • Published

wql-cli

Query the web with SQL like syntax from your terminal

Installation

npm i -g @nire0510/wql-cli

Usage

> wql '{query}'
For example:
> wql 'SELECT text from "https://www.google.com"'

  • URLs in the FROM clause must be wrapped in parentheses, e.g. "https://www.google.com".
  • Method arguments (i.e. attr, data & style) must be wrapped in parentheses, e.g. attr("id").
  • For more information about the query syntax, please visit @nire0510/wql npm package homepage.

Running on Linux Server

  1. Install Chromium browser:
    sudo apt-get install chromium-browser
  2. Call wql with the --executablePath option:
    wql -ep '/usr/bin/chromium-browser' 'SELECT...'

Help

> wql --help

Package Sidebar

Install

npm i @nire0510/wql-cli

Weekly Downloads

3

Version

2.0.1

License

MIT

Unpacked Size

8.07 kB

Total Files

10

Last publish

Collaborators

  • nire0510