- Primeros pasos
- Tutoriales
- Proyectos de automatización
- Crear automatizaciones
- Fundamentos de la automatización
- Repo. de objetos
- Mejores prácticas de automatización
- Acerca de los destinos y los anclajes
- Indicar un destino
- Editar un destino
- Tutorial: Trabajar con la automatización de IU
- Tutorial: Extraer datos de una tabla de una página web y editarlos en Excel
- Tutorial: Rellenar formularios PDF en Acrobat Reader con datos de Excel
- Tutorial: Crear una tabla dinámica
- Tutorial: Iterar a través de las filas de una tabla
- Tutorial: Comparar archivos de Excel y envío de errores de conciliación por correo electrónico
- Tutorial: Extraer datos de correos electrónicos automatizados y trasladarlos a una aplicación de escritorio
- Tutorial: Filtrar datos en Excel
- Tutorial: Formatear celdas
- Tutorial: Añadir información en los archivos de una carpeta a un archivo de Excel
- Tutorial: Añadir sus propias fórmulas al cuaderno del proyecto
- Automatización de PowerPoint
- Automatización de datos
- Actividades comunes
- Automatización de Google Workspace
- Automatización de OneDrive y SharePoint
- Solución de problemas

StudioX user guide
Tutorial: Extraer datos de una tabla de una página web y editarlos en Excel
En este tutorial, desarrollaremos una automatización que extraiga una tabla con los tipos de cambio actuales del euro frente a otras monedas del sitio web del Banco Central EuropeoGuardamos los datos históricos de los tipos de cambio en una hoja de cálculo de Excel y pretendemos añadir estos datos a diario. Debido a que el formato de los datos extraídos del sitio web es diferente al de nuestra hoja de cálculo de Excel, tenemos que editar también los datos extraídos en Excel para aplicarles el formato correcto.
We will create a project and start by adding a Use Excel File activity to indicate the Excel file to use. We will then click Data Extraction in the StudioX ribbon to start a wizard that will help us extract the data from the website. When we complete the wizard, two already configured activities will be added automatically to our project: a Use Application/Browser activity that indicates the web page and an Extract Table Data activity that extracts the data. We will then add a series of Excel activities to transpose the data, format the data as dates or numbers, and append the data to the worksheet with historical exchange rates.
- Configura el proyecto y obtén los archivos necesarios.
- Create a new blank project using the default settings.
- Descarga y extrae el archivo con el proyecto de automatización en este tutorial utilizando el botón en la parte inferior de esta página y copia el archivo currency data.xlsx en la carpeta del proyecto.
- This example uses Google Chrome, which requires the UiPath® extension for Chrome to be installed. To install it, go to Home (StudioX Backstage View) > Tools, and then, under UiPath Extensions, click Chrome.
- Añade el archivo de Excel al proyecto.
- Click Add Activity
in the Designer panel, and then find the Use Excel File activity in the search box at the top of the screen and select it. A Use Excel File activity is added to the Designer panel. - En la actividad:
-
Click Browse next to the Excel file field, and then browse to and select the file
currency data.xlsx -
En el campo Referencia como, introduce
currency.Indicaste que trabajarás con el archivo moneda datos.xlsx que se conoce en tu automatización como moneda.
-
- Click Add Activity
- Extrae los datos de la página web.
-
Open Google Chrome and navigate to the following web page: https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html.
-
En StudioX, haz clic en Extracción de la tabla en la cinta de opciones para abrir el Asistente de extracción.
-
Click Select Data to Extract to indicate the table from which to extract the data.
-
Empieza a mover el ratón y observa cómo StudioX resalta los elementos de la interfaz de usuario que detecta. Mueve el ratón a algún lugar de la tabla y haz clic, por ejemplo, puedes hacer clic en el encabezado de Moneda.
-
StudioX detecta que has hecho clic dentro de una tabla y te pregunta si quieres extraer datos de la tabla. Haz clic en Sí.
-
You can view a preview of the extracted table data by clicking the Preview button.
-
You can select Extract data from multiple pages if the data spans multiple pages. Since that is not the case, select No.
El asistente ha finalizado. Tu proyecto se muestra en StudioX, en donde se añadieron las actividades Utilizar aplicación/navegador y Extraer datos de tabla.
-
In the Extract Table Data activity, click Plus
on the right side of the Extract to field, and then select currency > Sheet1 [Sheet] to indicate that you want to copy the extracted data to Sheet1 of the currency Excel file.
-
- Transpón, formatea y copia los datos en la hoja Datos históricos.
- Click Add Activity
below the Use Application/Browser activity, then find the Copy Range activity in the search box at the top of the screen and click it. The activity is added to the project. - En la actividad Copiar rango:
-
Click Plus on the right side of the Source field, and then select currency > Indicate in Excel.
-
En el archivo de Excel, selecciona Hoja1, luego selecciona el rango A2:C33 (el rango con los datos extraídos de la página web no incluyendo la fila de encabezado, y luego haz clic en Confirmar en la pestaña UiPath en la cinta de Excel.
Indicaste que quieres copiar el rango A2:C33 de la Hoja1 del archivo de monedas.
-
Click Plus on the right side of the Destination field, and then select currency > Indicate in Excel.
-
En el archivo de Excel, selecciona la Hoja2, luego la celda B1 y haz clic en Confirmar en la pestaña UiPath de la cinta de Excel.
Indicaste que quieres pegar los datos en Hoja2 del archivo de moneda a partir de la celda B1.
-
Desde el menú desplegable Qué copiar, selecciona Todo.
-
Selecciona Transponer para indicar que quieres transponer los datos en el destino (columnas a filas y filas a columnas).
-
- Click Add Activity
below the Copy Range activity, then find the Format Cells activity in the search box at the top of the screen and click it. The activity is added to the project. - En la actividad Formato de celdas:
-
Click Plus on the right side of the Source field, and then select currency > Indicate in Excel.
-
En el archivo de Excel, selecciona la Hoja 2, luego selecciona la tercera fila completa que contiene los tipos de cambio y, a continuación, haz clic en Confirmar en la pestaña UiPath de la cinta de Excel.
-
Haz clic en Establecer formato. Selecciona la pestaña Tipo de datos y en el menú desplegable Categoría selecciona Número. En la casilla Decimales introduce
2, y selecciona Usar separador de 1000.Indicaste que quiere formatear los datos de la Hoja2, fila 3 como número con dos decimales y utilizar el separador de 1000.
-
- Agregar una segunda actividad de celdas de formato debajo de la anterior.
- En la segunda actividad de Formatear Celdas:
-
Click Plus on the right side of the Source field, and then select currency > Indicate in Excel.
-
En el archivo de Excel, selecciona Hoja2, luego selecciona la celda A3, y a continuación haz clic en Confirmar en la pestaña UiPath de la cinta de Excel.
-
Haz clic en Establecer formato. Selecciona la pestaña Tipo de datos y en el menú desplegable Categoría selecciona Fecha y en el menú desplegable Formato de fecha selecciona 14/3/2012.
Indicaste que quieres formatear los datos de la hoja2, celda A3 como fecha con el formato d/mm/aaaa.Aquí está la celda donde añadiremos la fecha de hoy.
-
- Click Add Activity
below the second Format Cells activity, then find the Write Cell activity in the search box at the top of the screen and click it. The activity is added to the project. - En la actividad Escribir celda:
-
Click Plus on the right side of the What to write field, and then select Project Notebook (Notes) > Date [Sheet] > Today [Cell].
-
Click Plus on the right side of the Where to write field, and then select currency > Indicate in Excel.
-
En el archivo de Excel, selecciona Hoja2, luego selecciona la celda A3, y a continuación haz clic en Confirmar en la pestaña UiPath de la cinta de Excel.
Indicaste que quiere copiar la fecha del Cuaderno del proyecto a la celda A3 en la Hoja2 del archivo de moneda.
-
- Click Add Activity
below the Write Cell activity, then find the Append Range activity in the search box at the top of the screen and click it. The activity is added to the project. - En la actividad Anexar rango:
- Click Plus
on the right side of the Excel range to append field, and then select currency > Indicate in Excel.
-
En el archivo de Excel, selecciona Hoja 2, luego selecciona toda la fila, y haz clic en Confirmar en la pestaña de UiPath en la cinta de Excel.
Indicaste que quieres copiar los datos de la fila 3 de la Hoja 2 y añadirlos a la hoja de Datos Históricos del archivo de moneda después de los datos existentes en la hoja.
-
Click Plus
on the right side of the Append after range field, and then select currency > Historical Data [Sheet]. * From the What to copy drop-down menu, select All. * Leave Transpose deselected, since we don't need to transpose the data.
-
- Click Plus
- Click Save in the StudioX ribbon to save the automation, then click Run to execute the automation.The web page is opened, the exchange rates are copied to Excel where they are formatted and added to the Historical Data sheet. Download example
- Click Add Activity