Skip to content

damianoct/Concorsi_Gazzetta_WebScraping_Service

Repository files navigation

Concorsi Gazzetta RESTful Service

A WebScraping service developed with Spring.io that manages public contests of Gazzetta Ufficiale.

##Install and run

- ####Maven
git clone https://github.com/damianoct/Concorsi_Gazzetta_WebScraping_Service.git
cd Concorsi_Gazzetta_RESTful_Service
mvn package
#run jar
java -jar target/gs-rest-service-0.1.0.jar

- ####Docker

You can build and run it on armv7 device (e.g. Raspberry Pi3, AllWinner chips..) with Docker!

docker run -p 8080:8080 damianodds/armhf-concorsi_restful

Feel free do modify the source and rebuild the docker images.

mvn package
cd target
docker build -f Dockerfile -t "yourrepository/yournameimage" .

##API Overview

  • #####List available Gazzette.

    curl -i -H "Accept: application/json" "yourserver.com:8080/gazzette"

  • #####List available Gazzette with summary constests.

    curl -i -H "Accept: application/json" "yourserver.com:8080/gazzetteWithContests"

  • #####Get single contest.

    curl -i -H "Accept: application/json" "yourserver.com:8080/concorso?giorno=05&mese=07&anno=2016&codiceRedazionale=16E03156"

About

A WebScraping Service for Concorsi's section of GazzettaUfficiale.it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages