UiPath - Download File From URL | How to download file from website using UiPath

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น • 23

  • @redamarzouk
    @redamarzouk  ปีที่แล้ว

    Here is the code guys enjoy :)
    _________ 👇 Code 👇 _________
    Using w As New System.Net.WebClient()
    w.DownloadFile(Url,Path)
    End Using

  • @SrdjanS_Automations
    @SrdjanS_Automations ปีที่แล้ว +2

    The last part is why I watched the video. Amazing tip!

    • @redamarzouk
      @redamarzouk  ปีที่แล้ว

      Yep, it's definitely so useful as an activities and not a lot of people talk about it.
      Glad you enjoyed the video!

  • @hemenths.k9009
    @hemenths.k9009 6 หลายเดือนก่อน +1

    Hey, I am getting Invoke Code: Exception has been thrown by the target of an invocation. Error when ran this.

  • @mohibkhann
    @mohibkhann 8 หลายเดือนก่อน +1

    You explain very good my friend. Was a very helpful video. Thanks and keep up the good work :)

    • @redamarzouk
      @redamarzouk  8 หลายเดือนก่อน

      You're most welcome!!! Will do!

  • @KevinRamirez-vw5kv
    @KevinRamirez-vw5kv 11 หลายเดือนก่อน +1

    Great stuff, really appreciate it.

    • @redamarzouk
      @redamarzouk  11 หลายเดือนก่อน

      My pleasure Kevin!

  • @SagarPatel-h3o
    @SagarPatel-h3o ปีที่แล้ว +1

    What if same file name xlsx is already present in the folder?
    I guess wait for download activity will wait for forever. correct me if I am wrong.

    • @redamarzouk
      @redamarzouk  ปีที่แล้ว

      Hello,
      Yes you're right, it's necessary to have a unique name for every file you download.
      You can do that using the date of the download (now.tostring("yyyy-MM-dd__HH-mm-ss")) as a string added to the name of the file.

  • @amineachalhi3216
    @amineachalhi3216 ปีที่แล้ว +1

    thank you for the last tip ;)

  • @mineshchande9824
    @mineshchande9824 ปีที่แล้ว +1

    Hi. Thanks a lot for the video. If I have urls but they download files with different extensions i.e. PDF, JPEG, PNG, etc. How can I achieve that?

    • @redamarzouk
      @redamarzouk  ปีที่แล้ว

      You’re welcome.
      In that case you just change the extension at the end of the argument “path” to .jpg or .png etc
      If you only have URLs without knowing what’s inside of them look for an indication inside of the url to extract the extension.
      If you don’t have any indication you will have to go to the source of the urls and extract the extension.
      Hope that helps.

  • @Marieloureiro
    @Marieloureiro ปีที่แล้ว +1

    What f I need to log in to the website to perform the download?

    • @redamarzouk
      @redamarzouk  ปีที่แล้ว

      Hello,
      Maybe I'm missing something but I don't see the difficulty in that.
      You will automate the log in action in UiPath, retrieve the URL and then download the file using the method I've shown.

  • @AppalarajuV-lo4do
    @AppalarajuV-lo4do 2 หลายเดือนก่อน

    Sir one doubt if url comes javascript how can we handle it sir..here we have table data images download

    • @AppalarajuV-lo4do
      @AppalarajuV-lo4do 2 หลายเดือนก่อน

      javascript return encripted url sir.. we want get genarated url sir every row one column having javascript click sir

  • @UiPath_ESP
    @UiPath_ESP ปีที่แล้ว

    great video

  • @thejewbacabra4926
    @thejewbacabra4926 ปีที่แล้ว +1

    THANK YOU

    • @redamarzouk
      @redamarzouk  ปีที่แล้ว

      You’re most welcome 🙏