Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Web scraping = macro para buscar si hay cierto enlace y clicar si lo hay

publicado

Hola

Me gustaría saber como he de formular una macro para que una vez acceda a una determinada web búsque si en ella hay algun enlace que empieze por "blablabla?ID=..." y si lo hubiese clicar en el y si no avise de que no lo hay.

Dicho enlace siempre empieza por "DriverProfile.asp?ID=" y siempre se encuentra alojado en el mismo lugar del html de haberlo, pero puede darse el caso de no estar... en función de quien visite la web.

Sólo necesitaría conocer cómo formular esa consulta.. el resto del código (acceder a la web etc ) lo tengo armado.

La estructura donde se encuentra el elemento a buscar dentro del html de la web es ésta:

<table cellspacing="0" cellpadding="0">
<tr>
<td rowspan="4" class="staff"><img src="http://b.gpro.net/compressed/images/xdriver.gif" height="78" width="78" alt="" /></td>

<th width="110">Piloto</th>
<th colspan="2"><a href="DriverProfile.asp?ID=29856">Alexander Bernstorff</a></th>

</tr>
<tr>

<td>Total:</td>
<td>108</td>
<td>

<a href="TrainingSession.asp">Entrenar »

</td>

</tr>
<tr class="even">

<td>Salario:</td>
<td>$725.000</td>
<td width="70">

<a href="DriverContract.asp">Contrato »</a>

</td>

</tr>
<tr>

<td>Carreras restantes:</td>
<td colspan="2">
1 (+17)
</td>

</tr>
</table>
[/CODE]

Featured Replies

No hay posts para mostrar

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.