I need to extract the body from the html page without opening the link, I tried using the Get Text method and Orchestrator HTPP request activities but it didn’t workout.
Ex:
There will be list of url’s in a webpage in list format, I need to capture the Description of that particular url in the site without opening it, the task is to capture that description form the HTML code which is present under the body.
Drag and drop the “HTTP Request” activity onto your UiPath workflow.
In the Properties panel, set the “Endpoint” property to the URL of the HTML page you want to retrieve the content from.
Set the “Method” property to “GET”.
If required, add headers and parameters to the “Headers” and “Parameters” properties respectively.
Set the “Output” property to a variable of type “HttpResponseMessage”.
Add a “Read Text” activity to your workflow and set the “Input” property to the “Content” property of the “HttpResponseMessage” variable you created in step 5.
Save and run the workflow.
When you run the workflow, the “HTTP Request” activity will send a GET request to the specified URL and store the response in the “HttpResponseMessage” variable. The “Read Text” activity will then extract the content of the HTML page from the response and store it in a string variable, which you can use in your workflow as required.