HOW TO DOWN LOAD FILE FROM AUDIO HTML TAG WITH UIPATH

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 :tada:

Have you tried Activities - Download file from URL

Try this one if not tried.

Tutorial:

Thanks,
Ashok :slight_smile:

1 Like

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 :smiley: thank you friend.

when post edit the extract XML to the src attribute you can grab the links

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>```

At least
grafik
you should touch and use the right attribute name:
grafik

href vs src

Thank you @ppr, it works :smile: I am new on this and you helps me a lots.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.