How do I download the multiple Pdf’s from a website?
- Use Data Scraping for “Download Report” column and mark additional “Extract Url”
- Then use for each row in ExtractedDataTable
2.1) Inside for each row use assign activity “Url = row(1).ToString”
2.2) Use ‘Navigate To’ with parameter "Url.ToString
@sjankus Thanks for the respond , I tried above solution but this worked only for one company. But i want to do Dynamic Data scrapping because there are multiple company list inside excel is it possible to do dynamic scrapping?
can you please post the screen shot of the selector of the PDF download link
Yes you can do dynamic scraping just need one more for each loop. Example:
- Use Excel Read Range for company list extract as CompanyNameDataTable
- For each row in CompanyNameDataTable
2.1 Use assign CompanyName = row(“ColumnName”).ToString
2.2 Use Type Into CompanyName.ToString in browser ‘Select Company Name’ field
2.3 Click ‘Get Data’
2.4 Use Data Scraping for “Download Report” column and mark additional “Extract Url”
2.5. Then use for each row in ExtractedDataTable
2.6 Inside for each row use assign activity “Url = row(1).ToString”
2.7 Use ‘Navigate To’ with parameter "Url.ToString
2.8 Save your file
You can use “http request” activity for such scenario. first check if you have “UIPath.WebAPI.Activities” installed on your system. if not, download it from “Package Manager”. In “http request” activity, provide url address from which you want to download the file along with location path where you want to save it. You can use string variables to change your download link, received them from data scrapping from earlier stage. (I assume you have it based on your Question and replies). please refer below link for more information. still if you have any doubt, please let me know.