Process structure design of downloading files

I’m a newcomer to uipath. I have a problem. If you are free, please give me some help
The project is like this: I need to download files on a web, and the process is as follows

Looking forward to your reply

Efficiency and stability are needed. At present, I have the following methods

  1. Sequence structure is too time-consuming
  2. Parallel can not get the result normally
  3. Open 10 web pages, and then use Ctrl + tab to switch processing one by one. There are always errors. For example, the process ends before it is completed

Hi @heilongke

Is the login is different for different downloads ?

Thank you for your reply!
Same login name&password, different input parameters

Then make a single workflow for the login and loop through each input parameter

Hope it helps you

Nived N :robot:

Happy Automation :relaxed::relaxed:

What should I do specifically
If 10 web pages are opened, how to ensure stable switching between them?

Hi @heilongke for this

  1. You can create a single workflow for login to the page

  2. Place these input parameter in array or list or collection and loop through each each values and inside it do the workflow for diwnlaing each files

  3. After all the files had been downloaded , u out side the loop u can close the tab and exit the browser

This would be the best practice to do so

Hope it helps you


Nived N :robot:

Happy Automation :relaxed:

Thank you very much ,but I didn’t get any help

Please ignore the login and focus on how to run in parallel
Can you give me an example,

  1. Run 10 Web parallel processing at the same time (there are two breakpoints to wait in the middle, each waiting time is x ~ y min,)
  2. When a web is processed, a new web will be created immediately,
  3. When all 20 web processes are completed, the program ends
    What I need is how to achieve it

Hello Team,
In this video, download files via an HTTP request maybe this code will help you with your issue:

I attached the VB.NET code:

Dim httpRequest As HttpWebRequest = DirectCast(WebRequest.Create(“https://url.pdf”), HttpWebRequest)
httpRequest.Method = WebRequestMethods.Http.Get
Dim httpResponse As HttpWebResponse = DirectCast(httpRequest.GetResponse(), HttpWebResponse)
Dim httpResponseStream As Stream = httpResponse.GetResponseStream()
Dim doc As Byte()
Dim ms As MemoryStream = New MemoryStream()
doc = ms.ToArray()
File.WriteAllBytes(“C:\yourfile.pdf”, doc)

Cristian Negulescu