mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
+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 <jacob@pkgx.dev>
This commit is contained in:
parent
7544424d66
commit
c53de16f38
2 changed files with 28 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
restaurants in kyiv, ukraine
|
27
projects/github.com/gosom/google-maps-scraper/package.yml
Normal file
27
projects/github.com/gosom/google-maps-scraper/package.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue