diff options
| author | horus_arch | 2018-02-01 12:06:16 +0100 |
|---|---|---|
| committer | horus_arch | 2018-02-01 12:06:16 +0100 |
| commit | a5bda60647639e787a777446dce693ac330fe940 (patch) | |
| tree | 78efc36970114022765cad25c4d5faecbaf99933 | |
| download | alkobote-a5bda60647639e787a777446dce693ac330fe940.tar.gz | |
Initial commit.
| -rw-r--r-- | drankdozijnnl.go | 18 | ||||
| -rw-r--r-- | schema.txt | 20 |
2 files changed, 38 insertions, 0 deletions
diff --git a/drankdozijnnl.go b/drankdozijnnl.go new file mode 100644 index 0000000..9c1a9f2 --- /dev/null +++ b/drankdozijnnl.go @@ -0,0 +1,18 @@ +package main + +import ( + "log" + + "github.com/PuerkitoBio/goquery" +) + +func ScrapeHtml(url string) { + doc, err := goquery.NewDocument(url) + if err != nil { + log.Fatal(err) + } + +} + +func main() { +} diff --git a/schema.txt b/schema.txt new file mode 100644 index 0000000..a21b69a --- /dev/null +++ b/schema.txt @@ -0,0 +1,20 @@ +CREATE TABLE whisky ( + id int PRIMARY KEY auto_increment, + shop int, + name text, + url text, + price text, + original_price text, + valid_until int, + image_url text, + created_at int +); + +CREATE TABLE shop ( + id int PRIMARY KEY auto_increment, + name text, + website_url text, + logo_url text, + shipping_costs text, + free_shipping text +); |
