Jump to content
Sign in to follow this  
t11wright

How to get similar urls in that page..

Recommended Posts

t11wright

I do not know how to do that so I am asking. I tried nothing so far.
 

<div class="questionBox" id="question_box_124810642126">

    <div class="question" dir="ltr">
      <span class="text-bold"><span dir="ltr">What is a good small size bearing yo-yo? As much as I like unresponsive play, I'd like to push my skills.</span></span>
    </div>

    
    
    <div class="reportFlagBox ">
  <a href="/unklesteve/questions/124810642126/report_answer" class="reportFlag hintable" hint="Sikayet Et" onclick="RLTLogger.execute(&quot;CtxPointer&quot;, &quot;Complain.mark&quot;);$.colorbox({href:&quot;/unklesteve/questions/124810642126/report_answer&quot;,title:&quot;\u015eikayet Et&quot;}); return false"></a>
</div>


    
    

    <div class="answer" dir="ltr">
      Hunt down an old CLYW Bassalope or a small bearing 888.
    </div>

    <div class="time"><a href="/unklesteve/answer/124810642126" class="link-time" data-rlt-aid="answer_time">4 ay once</a></div>

    <div class="likeCombo" id="like_box_124810642126">
  
    
      <div class="likeBox">
        
          <span class="like-active" style="display:none"></span>
        
        <div class=" ghostLink">
          <a class="like hintable" hint="Begen" href="#" onclick="Like.quickLike(124810642126, &quot;lnferhat1903&quot;, &quot;/likes/unklesteve/question/124810642126/add&quot;); return false;" style="display:block"></a>
        </div>

        
      </div>

      <div class="likeList you-like-block" style="display:none">
        Bunu begendin
      </div>
    

    <div class="likeList people-like-block"></div>

    
</div>

    
  </div>



Here is the source and this continues.. I want to get all the "question_box_xxxxxxxxxxxx" id's with class="question" and "answer" classes from all the page and copy/paste them to a text file with autoit script. Thank you..

Edited by t11wright

Share this post


Link to post
Share on other sites
Danp2

There are a couple of approaches that come to mind. One uses the WinHTTP funtions to retrieve the HTML and then you can parse it with Regex. The other uses an actual web browser to navigate to the site and then retrieve the URLs.

There are examples for both methods on the forum. :)

  • Like 1

Share this post


Link to post
Share on other sites
t11wright

Thanks for your answer! Can you please show me some topics about that ? I didn't understand.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×