<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Web Scraping multiply elements in Brasil</title>
    <link>https://community.blueprism.com/t5/Brasil/Web-Scraping-multiply-elements/m-p/121038#M233</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/63930"&gt;@Raphael_Sampaio&lt;/a&gt;.,&lt;/P&gt;&lt;P&gt;Extracting table data (such as item prices) from a website using Blue Prism can be a bit tricky, but it’s definitely doable by following these steps carefully:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to Scrape Table Data in Blue Prism:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Spy the first cell of the table. Example (screenshot below):&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saha1sourav2_1-1749983411245.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41064i3049BCD7C8F06B6E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="saha1sourav2_1-1749983411245.png" alt="saha1sourav2_1-1749983411245.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Let's assume the HTML path for the first cell is:&amp;nbsp;/HTML[1]/BODY[1]/DIV[5]/DIV[1]/TABLE[1]/TBODY[1]/TR[1]/TD[2]&lt;/LI&gt;&lt;LI&gt;Spy the second cell (same column, next row):&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saha1sourav2_2-1749983562627.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41065i179D71A69A96B442/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="saha1sourav2_2-1749983562627.png" alt="saha1sourav2_2-1749983562627.png" /&gt;&lt;/span&gt;&lt;P&gt;Assumed HTML path:&amp;nbsp;/HTML[1]/BODY[1]/DIV[5]/DIV[1]/TABLE[1]/TBODY[1]/TR[2]/TD[2]&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;By comparing both paths, you’ll notice that the only difference is the row index (TR[x]).&lt;BR /&gt;Now, deselect all attributes in the application modeller except the HTML path and make the path dynamic by replacing the row number with a placeholder (e.g., TR[{Counter}]).&lt;/LI&gt;&lt;LI&gt;Create and Use a numeric Counter data item to iterate through each row dynamically.&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Loop to extract values&lt;/P&gt;&lt;P&gt;Create a Collection to store the item prices.&lt;/P&gt;&lt;P&gt;In a loop:&lt;/P&gt;&lt;P&gt;- Use a Get Text action to read the value from the dynamic element (using the current counter value).&lt;/P&gt;&lt;P&gt;- Use Add Row and assign the retrieved value to the collection.&lt;/P&gt;- Increment the counter and repeat the process for the next row.&lt;/LI&gt;&lt;LI&gt;As a best practice, include a &lt;STRONG&gt;Check Element&lt;/STRONG&gt; or &lt;STRONG&gt;Wait Stage&lt;/STRONG&gt; before each Get Text action. When the element is no longer found (i.e., you've reached beyond the last row), the timeout will indicate the end of the table, and you can exit the loop.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also check out this thread for additional help:&amp;nbsp;&lt;A href="https://community.blueprism.com/t5/Product-Forum/how-to-read-a-table/td-p/86567" target="_blank" rel="noopener"&gt;https://community.blueprism.com/t5/Product-Forum/how-to-read-a-table/td-p/86567&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For a deeper understanding of browser automation in Blue Prism, I recommend reviewing this course:&amp;nbsp;&lt;A href="https://university.blueprism.com/courses?entry=110248&amp;amp;section=courses" target="_blank" rel="noopener"&gt;https://university.blueprism.com/courses?entry=110248&amp;amp;section=courses&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know if you need more help on this. If you found this answer helpful, please mark this as &lt;STRONG&gt;Best Answer&lt;/STRONG&gt;.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jun 2025 10:43:48 GMT</pubDate>
    <dc:creator>SouravSaha</dc:creator>
    <dc:date>2025-06-15T10:43:48Z</dc:date>
    <item>
      <title>Web Scraping multiply elements</title>
      <link>https://community.blueprism.com/t5/Brasil/Web-Scraping-multiply-elements/m-p/121034#M232</link>
      <description>&lt;P&gt;I'm handling with a trouble that is:&lt;/P&gt;&lt;P&gt;i wanna scrap name and price of items from a website, but i don't know how to do it by multiple elements...&lt;/P&gt;&lt;P&gt;I know do it with Python, but not in Blue Prism.&lt;/P&gt;&lt;P&gt;Some one can help me please?&lt;/P&gt;&lt;P&gt;#webscraping #scrap&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 08:58:41 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Brasil/Web-Scraping-multiply-elements/m-p/121034#M232</guid>
      <dc:creator>Raphael_Sampaio</dc:creator>
      <dc:date>2025-06-15T08:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scraping multiply elements</title>
      <link>https://community.blueprism.com/t5/Brasil/Web-Scraping-multiply-elements/m-p/121038#M233</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/63930"&gt;@Raphael_Sampaio&lt;/a&gt;.,&lt;/P&gt;&lt;P&gt;Extracting table data (such as item prices) from a website using Blue Prism can be a bit tricky, but it’s definitely doable by following these steps carefully:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to Scrape Table Data in Blue Prism:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Spy the first cell of the table. Example (screenshot below):&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saha1sourav2_1-1749983411245.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41064i3049BCD7C8F06B6E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="saha1sourav2_1-1749983411245.png" alt="saha1sourav2_1-1749983411245.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Let's assume the HTML path for the first cell is:&amp;nbsp;/HTML[1]/BODY[1]/DIV[5]/DIV[1]/TABLE[1]/TBODY[1]/TR[1]/TD[2]&lt;/LI&gt;&lt;LI&gt;Spy the second cell (same column, next row):&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saha1sourav2_2-1749983562627.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41065i179D71A69A96B442/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="saha1sourav2_2-1749983562627.png" alt="saha1sourav2_2-1749983562627.png" /&gt;&lt;/span&gt;&lt;P&gt;Assumed HTML path:&amp;nbsp;/HTML[1]/BODY[1]/DIV[5]/DIV[1]/TABLE[1]/TBODY[1]/TR[2]/TD[2]&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;By comparing both paths, you’ll notice that the only difference is the row index (TR[x]).&lt;BR /&gt;Now, deselect all attributes in the application modeller except the HTML path and make the path dynamic by replacing the row number with a placeholder (e.g., TR[{Counter}]).&lt;/LI&gt;&lt;LI&gt;Create and Use a numeric Counter data item to iterate through each row dynamically.&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Loop to extract values&lt;/P&gt;&lt;P&gt;Create a Collection to store the item prices.&lt;/P&gt;&lt;P&gt;In a loop:&lt;/P&gt;&lt;P&gt;- Use a Get Text action to read the value from the dynamic element (using the current counter value).&lt;/P&gt;&lt;P&gt;- Use Add Row and assign the retrieved value to the collection.&lt;/P&gt;- Increment the counter and repeat the process for the next row.&lt;/LI&gt;&lt;LI&gt;As a best practice, include a &lt;STRONG&gt;Check Element&lt;/STRONG&gt; or &lt;STRONG&gt;Wait Stage&lt;/STRONG&gt; before each Get Text action. When the element is no longer found (i.e., you've reached beyond the last row), the timeout will indicate the end of the table, and you can exit the loop.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also check out this thread for additional help:&amp;nbsp;&lt;A href="https://community.blueprism.com/t5/Product-Forum/how-to-read-a-table/td-p/86567" target="_blank" rel="noopener"&gt;https://community.blueprism.com/t5/Product-Forum/how-to-read-a-table/td-p/86567&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For a deeper understanding of browser automation in Blue Prism, I recommend reviewing this course:&amp;nbsp;&lt;A href="https://university.blueprism.com/courses?entry=110248&amp;amp;section=courses" target="_blank" rel="noopener"&gt;https://university.blueprism.com/courses?entry=110248&amp;amp;section=courses&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know if you need more help on this. If you found this answer helpful, please mark this as &lt;STRONG&gt;Best Answer&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 10:43:48 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Brasil/Web-Scraping-multiply-elements/m-p/121038#M233</guid>
      <dc:creator>SouravSaha</dc:creator>
      <dc:date>2025-06-15T10:43:48Z</dc:date>
    </item>
  </channel>
</rss>

