/wql-cli

Query the web with SQL like syntax from the command line

Primary LanguageJavaScriptMIT LicenseMIT

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