Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
Retrieve a .csv file via an URL with Node

I build a bot that as soon as a note is added on my online bulletin notifies me on Whatsapp. (I use twilio, the message part works).

The principle of operation is as follows:

  • I download the summary file of my grades.
  • I compare it with an older file I downloaded
  • if a note is added I send a msg
New note in GI ANUM Numerical analysis
 -> 14,19 

Recap of the UE M1 Sciences de l'information et mathematiques :
Average UE : 11,53
EU Rank : 26
GI ANUM Numerical Analysis : 14,19
    Max group : 16,36
    Group Min : 8,19
    Rank : 8

GI AUTO2 Continuous Systems Automation : 9,4
    Group Max: 18.9
    Group Min: 0
    Rank: 34

The code works if I upload the files by hand.

My concern is with the retrieval of the CSV file. There is an option on the site, when you click on it it opens a download window and downloads the file.

I tried with fecth(), changing the default options... Nothing works, I always get a 404 error.

I suspect that fetch is not suitable but I can't find anything equivalent that would allow me to do this.

Do you have any idea how to solve my problem?

PS: The rule about the originating URL of the link in question is: strict-origin-when-cross-origin. I don't know if this changes anything or not.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda