Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

106
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!