Good day, I have a task to download multi audio files like below:
I try to use Data Scraping but it turn out not working with audio tag (the result is blank). I also try Find children + Get Attribute and the result is blank also.
Is there any activities or any solution that can helps me download multi audio file and save it in a folder?
Thank you.
Hi @Quang_Minh_Nguyen ,
Welcome to the UiPath Community
Have you tried Activities - Download file from URL
Try this one if not tried.
Tutorial:
Thanks,
Ashok
1 Like
ppr
(Peter Preuss)
April 9, 2024, 8:31am
3
In general, it depends on the element structure details
please share the URL with us. Thanks
Thank you sir. I will try this solution
Hi ppr, here is the elenment structure of it. Hope you have solution for this thank you friend.
ppr
(Peter Preuss)
April 9, 2024, 9:28am
7
when post edit the extract XML to the src attribute you can grab the links
This HowTo introduces on how Data scraping can be configured to retrieve also on non standard information from a web table. After indicating the different data columns with the wizard the extract data definition was post edited and changed to the relevant attributes e.g. value (Text field), src ( Image Source), class (CSS Class Name), tite (Hover Text), href (Url).
Introduction
Following web table is to use for data scraping and also the non text information should be retrieved.
[grafik]
We…
As alternates:
Find Children (configure correctly the find scope and the filter) + Post processing the result will return the urls
Custom grapping e.g. with: https://html-agility-pack.net/
The files we can download by using the url e.g. with:
HTTPRequest Activity
Download File from URL Activitiy
1 Like
Hi @ppr , I try to custom the data defination but received result still blank. May you point out what did i do wrong. Thank you
<extract>
<row exact="1">
<webctrl tag="tr"/>
</row>
<column exact="1" name="Date" attr="text">
<webctrl tag="tr"/>
<webctrl tag="td" class="sorting_1 td-custom" idx="1"/>
</column>
<column exact="1" name="Column2" attr="text" name2="Column3" attr2="href">
<webctrl tag="tr"/>
<webctrl tag="td" idx="8"/>
<webctrl tag="audio" class="audio_call_center" idx="1"/>
<webctrl tag="source"/>
</column>
</extract>
Data definition from
<td uipath_custom_id="200"><audio class="audio_call_center" data-id="36469" controls="" style="height: 40px;" uipath_custom_id="36" text_capture_x_custom_id="04/09/2024 16:36:20-101" data-extract-result-name="Column2">
<source src="https://rs02.oncall.vn:8883/filedown/fc7d85f4142e9ef8b57bbd50fc8cdfc4f0aae042df454beddeecb99f428cd942?filename=764140536_0339902704_45660_20240408-182629.wav" type="audio/x-wav">
</audio></td>```
ppr
(Peter Preuss)
April 9, 2024, 10:42am
9
At least
you should touch and use the right attribute name:
href vs src
Thank you @ppr , it works I am new on this and you helps me a lots.
system
(system)
Closed
April 13, 2024, 2:21am
12
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.