From c53de16f389472394ed9a0a9275d890f8dd429bf Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Tue, 5 Dec 2023 00:14:07 +0200 Subject: [PATCH] +github.com/gosom/google-maps-scraper (#4307) * new file: projects/github.com/gosom/google-maps-scraper/example-queries.txt new file: projects/github.com/gosom/google-maps-scraper/package.yml * add ca-certs --------- Co-authored-by: Jacob Heider --- .../google-maps-scraper/example-queries.txt | 1 + .../gosom/google-maps-scraper/package.yml | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 projects/github.com/gosom/google-maps-scraper/example-queries.txt create mode 100644 projects/github.com/gosom/google-maps-scraper/package.yml diff --git a/projects/github.com/gosom/google-maps-scraper/example-queries.txt b/projects/github.com/gosom/google-maps-scraper/example-queries.txt new file mode 100644 index 00000000..264e024c --- /dev/null +++ b/projects/github.com/gosom/google-maps-scraper/example-queries.txt @@ -0,0 +1 @@ +restaurants in kyiv, ukraine \ No newline at end of file diff --git a/projects/github.com/gosom/google-maps-scraper/package.yml b/projects/github.com/gosom/google-maps-scraper/package.yml new file mode 100644 index 00000000..3ccf9aad --- /dev/null +++ b/projects/github.com/gosom/google-maps-scraper/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/gosom/google-maps-scraper/archive/v{{version}}.tar.gz + strip-components: 1 +versions: + github: gosom/google-maps-scraper +dependencies: + curl.se/ca-certs: '*' +build: + dependencies: + go.dev: ^1.21.1 + script: + - go build $GO_ARGS -ldflags="$LDFLAGS" . + env: + GO_ARGS: + - -trimpath + - -o="{{prefix}}/bin/google-maps-scraper" + LDFLAGS: + - -s + - -w + linux: + LDFLAGS: + - -buildmode=pie +provides: + - bin/google-maps-scraper +test: + - google-maps-scraper -input example-queries.txt -json -results restaurants.json -exit-on-inactivity 3m + - ls | grep restaurants.json