This forum is in read-only mode. The new forum is live at and registrations are open!

capturing alt of imgs

  • hi. i want capture alt of last products-container there are multy product which contains a img src i want capture alt of those div/imgs (i expand one of them. i want "Golden gold" and other ones alt).sorry im noob explain for a nob☹

    <!DOCTYPE html>
     <html lang="en" class="wf-opensanscondensed-n3-active wf-opensanscondensed-n7-active wf-opensans-n3-active wf-opensans-n4-ac tive wf-opensans-n7-active wf-montserrat-n4-active wf-active">
    <body class="with-sso-bar desktop sso-logged-in sso-auth-known"›
    <div class="sso-bar-spacer" style="height: 40px"></div>
    <dliv id="cdo-bar" class="SSO-BAR cf" style="display: block;">...</div>
    <script id="sso-bar-script" src=""></script>
    <script type="text/javascript" src=""></script> 
    <script src=""
     data-document-language="true" type="text/javascript" charset="uTF-8" data-domain-script="1acb2498-bi4d-45ba-8604-3c4fcbcaea6a"></script> ■<script type="text/javascript"›...</script>
      <div class="root responsivegrid"> "<div class="aem-Grid aem-Grid--12 aem-Grid--default--12 "> "<div class="mycod-app aem-GridColumn aem-GridColumn--default--12"> "<div id="mycod"> '<div class="header-container">...</div> "<div id="app" class="app game-mw 
    type-mp page-store store g-collapse"› 
    "<main class="main-content"> == $0 
    <div class="load-screen">...</div> "<div class="player-page main-content-inner inner-wrapper"› "<div class="store-page"> ■<div class="page-header store-header">_</div> 
    <div class="buckets-container"›
    <div class="available-currency">—</div>
     <div class="buckets-list">
     <div class="products-container">—</div>
    <div class="products-container">—</div>
    <div class="products-container">—</div>
    <div class="products-container"›
     <h2 class="heading bucket-heading">—</h2>
     <span> <div class="product"> <img src="" alt="Golden gold" class=“produc t-logo">  :point_left: :point_left: 
     <div class="product-cost">—</div>
     <p class="product-description">—</p>
     <div class="product-buttons">—</div>
     <div class="product-background" style="background-image: url("");"></div>
     </div> ►<div class="product" style="display: none;">—</div>
     <div class="product" style="display: none;">—</div>
     class="product" style="display: none;">—</div>
     <!----> </div> </div> </div> </div> <!----> <!----> </div> </div> </main> </div> </div> 

  • 1- Send a portion of the response that contains what you want to capture
    2- hide any website link
    It would help us give you the right Code/Regex

  • @Fairy hey.i think i hide every link or site name.and capture is name of that pic

  • i meant, share the code and Delete the src content. this way we can just use Regex easily to help you capture what you need.

  • @Fairy is this now ok? :((((((

  • can anyone help me

  • Try this
    PARSE "<SOURCE>" REGEX "<img src=\"([^\"]*)\" alt=\"([^\"]*)\"" "Alt: [2]" -> VAR "ALT"
    Sorry for the late reply

  • This post is deleted!

  • @Fairy tnx for noob what should i exatly do.make a req to that page and copy this in regex/regex?

  • make a request that would show the response you have shown. then Switch To Loli Script, and add the code i have shared underneath.

Log in to reply