Download company audit report (pdf) from company website and extract some info

Hello, i would like to know if it is possible to visit a company website, download the audit report (mostly pdf) and extract information even if the information is in image/scanned

1 Like

Yah thats possible either
-like to download the from a website use OPEN BROWSER activity and mention the url
–inside the scope use CLICK activity and TYPE INTO activity to save the file to a folder we want
–once after saving the file we can either use READ PDF or READ PDF with OCR (if its a image or scanned pdf) and get the output with variable of type string

–then we can use string manipulation method to get the text we want

Cheers @Gnaneshwari_Pinna

2 Likes

Let me try this out. Thanks a lot @Palaniyappan

2 Likes

Hey, i never faced issues using IE. I am now trying to use Chrome and got the below error:

Source: Open Browser
Message: Cannot communicate with the browser, please check the Uipath extension @Palaniyappan

1 Like

Fine
Did we install the chrome extension buddy

Cheers @Gnaneshwari_Pinna

Oh, i thought by default it will support. I will install it now. Thanks @Palaniyappan

1 Like

Hi @Gnaneshwari_Pinna

Have you tried it in IE

Thanks
ashwin S

Awesome
Here you go with the document

Cheers @Gnaneshwari_Pinna

Most of the websites perform/render better on chrome. Hence, i do not want to go for IE. I used IE for my firm’s internal websites. Now am accessing external websites

@Palaniyappan yesterday, it showed that chrome has already been installed. In the browser, i had to just click on some button ‘add extension’ or something. It is still not working. Let me check out the documentation you have shared and get back to you. Thanks!

1 Like

Kindly have a view on this documenr for troubleshooting

Cheers @Gnaneshwari_Pinna

1 Like

@Palaniyappan, how do we handle this cookies message? It does not always come. Suppose, we have added an activity for that, will it ignore and move forward when there is no cookies related prompt? Currently i am receiving that prompt

1 Like

yah of course we can do that with a ELEMENT EXISTS activity
like choose that popup as a element and if that appears it will give us a boolean variable named bool_Exists
now use a IF condition like this bool_Exists = True
if true it will go to THEN part where we can use CLICK activity to click on it and proceed with further process or
goes to ELSE part where we can just keep the process to proceed with

kindly try this and let know for any queries or clarification
Cheers @Gnaneshwari_Pinna

1 Like

@Palaniyappan . Activity that i have added so far is that UiPath visits this page (https://home.barclays/) , checks if there is a cookies related message (if yes, will accept the message), double clicks ‘Investor Relations’ to navigate to Annual Reports link. For this, i have added these steps : Open Browser > Do > Element Exists > If (condition = boolExists) > Then (click accept button) , Else double click Investor relations. Looks like it is not happening. I am pasting the code in a separate reply

1.1 Sequence (Sequence)
Private = False
Activities
1.2 Sequence (Sequence)
Private = False
Activities
1.8 Open Browser (OpenBrowser)
Url = https://home.barclays/
BrowserType = Chrome
Private = False
Body
1.9 Do (Sequence)
Private = False
Variables
boolExists(Boolean)
Activities
1.47 Delay (Delay)
Duration = 00:00:04
Private = False
1.45 Element Exists ‘BUTTON cookieWarningBu…’ (UiElementExists)
Target
Selector =
Timeout (milliseconds) = 3000
WaitForReady = COMPLETE
ResultType = System.Boolean
Private = False
1.37 If (If)
Condition = boolExists = True
Private = False
Then
1.40 Click ‘BUTTON cookieWarningBu…’ (Click)
KeyModifiers = None
CursorPosition
Position = Center
ClickType = CLICK_SINGLE
MouseButton = BTN_LEFT
Target
Selector =
Timeout (milliseconds) = 3000
Private = False
Else
1.30 Double Click (Click)
KeyModifiers = None
CursorPosition
Position = Center
ClickType = CLICK_DOUBLE
MouseButton = BTN_LEFT
DelayBefore = 3000
Target
Selector =
WaitForReady = COMPLETE
Private = False

Yah looks fine
But may I know where we are facing issue
I mean like at which activity
@Gnaneshwari_Pinna

It does not double click the investor relations and moreover how to go ahead, where exactly should i add further activities

Is the code helping you or you want to see the picture?

Is CLICKTYPE chosen as Double in the Click activity property panel

Cheers @Gnaneshwari_Pinna

@Palaniyappan yes, it is a double click activity