t11wright Posted June 12, 2015 Share Posted June 12, 2015 For example. Here is ask.fm and answers urls are similar like that.. http://ask.fm/unklesteve/answer/129522300878http://ask.fm/unklesteve/answer/xxxxxxxxxxxxHow I can get all these urls and write to a text file?Thanks.. Link to comment Share on other sites More sharing options...
Danp2 Posted June 12, 2015 Share Posted June 12, 2015 Post your code showing what you have tried thus far, and be sure to describe how it isn't working as expected. t11wright 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
t11wright Posted June 12, 2015 Author Share Posted June 12, 2015 (edited) I do not know how to do that so I am asking. I tried nothing so far. expandcollapse popup<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("CtxPointer", "Complain.mark");$.colorbox({href:"/unklesteve/questions/124810642126/report_answer",title:"\u015eikayet Et"}); 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, "lnferhat1903", "/likes/unklesteve/question/124810642126/add"); 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 June 12, 2015 by t11wright Link to comment Share on other sites More sharing options...
Danp2 Posted June 12, 2015 Share Posted June 12, 2015 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. t11wright 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
t11wright Posted June 13, 2015 Author Share Posted June 13, 2015 Thanks for your answer! Can you please show me some topics about that ? I didn't understand. Link to comment Share on other sites More sharing options...
Danp2 Posted June 13, 2015 Share Posted June 13, 2015 http://lmgtfy.com/?q=autoit+winhttp+site%3Awww.autoitscript.com Exit 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now