The api is to fetch and parse the events from url "https://www.lucernefestival.ch/en/program/summer-festival-22"
The techstacks used in here are
- fastapi
- postgresql
- docker
- docker-compose
- ormar ( ORM for fastapi )
docker-compose build
docker-compose up -d
The api will now be accessible in http://localhost:8000
The document for the api is accessible under http://localhost:8000/redoc
Call the parse site end point http://localhost:8000/fetch-events with the following input
{
"url": "https://www.lucernefestival.ch/en/program/summer-festival-22"
}
Note: The parser is created based on this specific url. Hence, any change in html structure will require different parser
call the read endpoint http://localhost:8000/events