export DB_URL=postgres://<username>@localhost:5432/configcreate database configStarting the server will run the migrations and start scraping in background (The default-schedule configuration will run scraping every 60 minutes if configuration is not explicitly specified).
make build
./.bin/config-db serveTo explicitly run scraping with a particular configuration:
./.bin/config-db run <scrapper-config.yaml> -vvv
config-db serveSee fixtures/ for example scraping configurations.
Commands ./bin/config-db serve or ./bin/config-db run would run the migrations.
Setup goose for more options on migration. Goose commands need to be run from db/migrations directory.
GOOSE_DRIVER=postgres GOOSE_DBSTRING="user=postgres dbname=config sslmode=disable" goose down- Create a new file in
scrapers/which implements theapi/v1/Scraperinterface - Add a reference to the scraper in
scrapers/common - Create a configuration struct in
api/v1and add it into theapi/v1/types/ConfigScraperstruct - Add a fixture in
fixtures/