--- title: "How to capture the URL of a link with text extractor Mozenda." slug: "capture-the-url-of-a-link" description: "Mozenda automates capturing both the visible text and the data (like URLs and image links). To capture the URL of a link follow the steps below." tags: ["link", "properties", "href"] updated: 2024-05-14T12:06:04Z published: 2024-05-14T12:06:04Z canonical: "help.mozenda.com/capture-the-url-of-a-link" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # Capture the URL of a link Mozenda can capture both the displayed text and the destination of a link. Ex: [Click here](https://www.youtube.com/watch?v=oHg5SJYRHA0) **Displayed text** = "Click here" **Link destination** = "youtube.com/watch?v=oHg5SJYRHA0" There are two ways to capture the link URL: #### Method 1 In the Agent Builder: 1. Enter a URL. 2. Select the link you want to capture. 3. Select **Capture Text**. 4. Enter a name for the field. 5. a) Select **SAVE AND REFINE** to create a new action. b) Right-click an existing capture action, then select **Refine Captured Text** to modify it. 6. Select **HTML** to capture HTML instead of the visible text. ![CaptureURL1](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/CaptureURL1.png) 1. Go to **Capture Definitions** section. 2. Place your cursor *before* the first percent sign **%** and type `href="`. 3. Place your cursor *after* the last percent sign **%** and type `"`. ![CaptureURL2](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/CaptureURL2.png) The URL will show in the **Captured Text Preview** field. 1. Select **SAVE**. #### Method 2 In the Agent Builder: 1. Enter a URL. 2. Select the link you want to capture. 3. Select **Capture Text**. 4. Enter a name for the field. 5. a) Select **SAVE AND REFINE** to create a new action. b) Right-click an existing capture action and select **Properties** to modify it. ![url2](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/url2.PNG) 1. Go to **Node property** > **Select** . 2. Select `href="`. 3. Select **OK**. 4. Select **SAVE**.