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

185
Visualizações
how to automatically download any image from a url to your phone with vanilla javascript or node js?

I know this is a huge thing , I have no idea what to do, just need some directions. simply i want to download hot/top post images (1-5) to my phone from reddit-api automatically every 24 hours. how can i approach this?

ps: i can work with MERN stack

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

0

I can think of 2 approaches. But I'm not sure if this is the best solution.

First Approach

Write a mobile application by using React-Native, Flutter, etc. Run the application in the background and use a cronjob to get the image every 24 hours.

Second Approach

If you don't want to write a mobile application:

To get the image from Reddit. If Reddit-API didn't work, you have to mess with web scraping and Javascript have plenty of libraries to do this:

  • Puppeteer
  • Playwright

For doing this task every 24 hours you can use

  • Cronjob

and when you get the image, rather than download the image to the phone you can save it on your computer or the cloud:

  • AWS s3
  • Azure blob
  • Google cloud storage

or send it through chat like:

  • Facebook (Facebook API)
  • Twitter (Twitter API)
  • Telegram (Telegram API)
  • LINE (LINE API)

but if you want to download the image to your phone and the image was saved on the local computer, you have to connect the phone with the computer and use ADB. It's a command-line tool that lets you communicate with an Android device (If your phone is an Android) that is connected over USB and it has a command to pull the image to the phone

  • adbkit
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