LSD SQL is an internet first programming language and database, allowing you query web data directly using familiar SQL syntax, with no schema definitions required. Our database provides SQL without ontology, taking advantage of how the grammar of a SELECT statements tells you the desired output structure without requiring a CREATE TABLE beforehand. Simply specify a URL as your “table,” and use CSS selectors to determine which HTML elements to extract.
LSD SQL adapts traditional SQL syntax to work with web data.
For example, get Hacker News posts and links with a simple SELECT statement:
FROM
https://news.ycombinator.com
SELECT
a AS post
, a@href AS link
GROUP BY
span.titleline;
FROM https://news.ycombinator.com
|> SELECT a AS post, a@href AS link
|> GROUP BY span.titleline
Concepts:
For querying:
For data manipulation:
For navigation:
For browser automation:
For data extraction: