This container should read a list of targets which consist of URL's and xpath informations from a MariaDB/MySQL Server -> Scrape the Information and write it to a MariaDB/MySQL Database
nopenix/xpath-scraper
mcr.microsoft.com/powershell:alpine
version: "3"
services:
scraper:
image: nopenix/xpath-scraper
restart: unless-stopped
volumes:
- .\scraper.ps1:/app/scraper.ps1 # This is for Developing purpose! please comment this out in productive envoronments
environment:
SCRAPER_CYCLE_PAUSE: 1
DB_SERVER_HOSTNAME: db
DB_SERVER_PORT: 3306
DB_SERVER_USERNAME: root
DB_SERVER_PASSWORD: changemeplz
DB_SERVER_DATABASE: scraper
#DB_SERVER_TABLENAME_TARGETS:
#DB_SERVER_TABLENAME_RESULTS:
db:
image: mariadb:10.3
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
restart: always
environment:
MYSQL_ROOT_PASSWORD: changemeplz
TZ: Europe/Berlin
volumes:
- mariadb:/var/lib/mysql
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 80:80
environment:
PMA_ARBITRARY: 0
PMA_HOST: db
PMA_PORT: 3306
volumes:
mariadb:
| Variable | Purpose |
|---|---|
| SCRAPER_CYCLE_PAUSE | Pause in Minutes between Scraping runs |
| DB_SERVER_HOSTNAME | |
| DB_SERVER_PORT | |
| DB_SERVER_USERNAME | |
| DB_SERVER_PASSWORD | |
| DB_SERVER_DATABASE | |
| DB_SERVER_TABLENAME_TARGETS | Optional. The Default Tablename for the Targetlist is scraper_targets |
| DB_SERVER_TABLENAME_RESULTS | Optional. The Default Tablename for the scraped results is scraper_results |
No Tags, only :latest
The Container gets automatically updated, build and pushed every Sunday.
Content type
Image
Digest
sha256:e4f7a3787…
Size
93.3 MB
Last updated
about 3 years ago
docker pull nopenix/xpath-scraper