Webinar

July 20, 2021 12:00 PM EDT
Automation for healthcare providersJuly 20, 2021 12:00 PM EDT
$25,000 in giveaways for attendees - get your first bot implementation for free

Downloading files from an HTTP server

This example demonstrates how to download a PDF document from an HTTP server and save it as a local file using Robot Framework and the RPA.HTTP library from RPA Framework.

*** Settings ***
Documentation   Download a PDF document from an HTTP server and save as a local file.
Library         RPA.HTTP

*** Variables ***
${PDF_URL}  https://ec.europa.eu/energy/sites/ener/files/documents/EnergyDailyPricesReport-EUROPA_0.pdf

*** Tasks ***
Download a PDF document from an HTTP server
    Download    ${PDF_URL}

*** Tasks ***
Download a PDF document from an HTTP server and overwrite existing file
    Download    ${PDF_URL}  overwrite=True

*** Tasks ***
Download a PDF document from an HTTP server using specific target location and name
    Download    ${PDF_URL}  target_file=output/my.pdf

Learn more about the libraries mentioned on this page:

December 14, 2020