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

145
Visualizações
Download files with json

I need to download an attribute in json that has a url of a pdf and I need to download it, but I try to convert it but the body of the pdf generates it as html

THE FILE JSON : "bulletins": [ { "name": "Boletín mensual Julio 2021", "type": "Mensuales", "update": "2021-08-31 20:35", "file": "https://saeadmin.sgc.gov.co/media/bulletin/Boletin_Informativo_No_0139_julio_2021_hq7KSVs.pdf" }, ]

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

For simple download cases the system may have several means to download a file, Most desktop systems including windows 10 have the curl command. Thus for this usage write a small script snippet without any header request for the json data

Invoke in the relative OS method the single line curl -O URL

curl -O https://saeadmin.sgc.gov.co/media/bulletin/Boletin_Informativo_No_0139_julio_2021_hq7KSVs.pdf

That will automatically download the URL as a file which if you wish, and system supports it, you run that as a command to open in the viewer, just as if you had placed the source URL address into the browser.

enter image description here

about 4 years ago · Juan Pablo Isaza Relatório
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