Mazurco066 / band-manager-api

Playliter API
MIT License
2 stars 0 forks source link

[Backend] Webscrapper endpoint for "Pocket Terço" Website #4

Closed Mazurco066 closed 2 years ago

Mazurco066 commented 2 years ago

Briefing

There is a Website named as Liturgia Pocket Terço that provides the daily liturgy.

The main objective is to create a endpoint that receives a date and scraps the daily liturgy such as: Antífona de entrada, Primeira Leitura, Salmo Responsorial, Segunda Leitura, Aleluia, Evangelho, Antífona do Ofertório and Antífona do Comunhão.

Inputs

It should receive a date that matches the desired concert

{
  date: "YYYY-MM-DD"
}

Integrations

It should send a GET request to https://pocketterco.com.br/liturgia/18/09/2022.

Notice that url receives a date, thats where date input will dynamically fit.

Return object

It should return something like this:

{
  status: {
    code: 200,
    message: "Daily liturgy retrieved"
  },
  data: [
    {
      title: "Antífona de Entrada",
      content: "Text content here..."
    },
    ...
  ]
}
Mazurco066 commented 2 years ago

Solution

Added a new endpoint able to webscrap songs from "Pocket Terço"

Endpoint