TommyTx 5 Posted May 17, 2010 Report Share Posted May 17, 2010 I have watched a ton of videos out there, does anyone remember seeing a tutorial or a sample of a bot scraping a text box.. I see tons of bots dumping all kinds of text into a text box and bots scraping data all over the place but can find none scraping a text box... Very simple if someone could give me a simple of example of grabing the text from a text box and saving it to a variable or even a file would be a great assistance.. Thanks Quote Link to post Share on other sites
Net66 54 Posted May 17, 2010 Report Share Posted May 17, 2010 I have watched a ton of videos out there, does anyone remember seeing a tutorial or a sample of a bot scraping a text box.. I see tons of bots dumping all kinds of text into a text box and bots scraping data all over the place but can find none scraping a text box... Very simple if someone could give me a simple of example of grabing the text from a text box and saving it to a variable or even a file would be a great assistance.. Thanks All you need to do is choose the text box by attribute (name or id usually) and then scrape the chosen attributes value. Simple example attached! Hope this helps. scrapetextbox.ubot Andy Quote Link to post Share on other sites
TommyTx 5 Posted May 17, 2010 Author Report Share Posted May 17, 2010 All you need to do is choose the text box by attribute (name or id usually) and then scrape the chosen attributes value. Simple example attached! Hope this helps. scrapetextbox.ubot Andy Boy I am starting to feel really dumb.. no one seems to be asking all these questions but me...Everything but the most important one worked great... that is getting the text.. Navigate:http://www.tizag.com/phpT/examples/formex.phpWait = Yes Choose by attributeAttribute = nameSearch String = quoteMethod = exact match ************************ Start my problem *******************setVariable#myvariableContent1. $scrape chosen attributes2. attribute3. value*********************** End my problem *********************** ui stat monitorLabelMy variableWatch#myvariable How do you get these 3 statements above (1,2,3) into the box..I even tried typing the scrape words in the box.. and theywent in but did not work and the last two attribute and value did not show up.I think if I can understand this 3 entries I will be on a roll.. Quote Link to post Share on other sites
TommyTx 5 Posted May 17, 2010 Author Report Share Posted May 17, 2010 Let me try to clarify this a little more as to exactly where I am.. 1. I set up the Navigation ok and it works..2. I click on the tizag text box.3. I rite click on the tizag text box.4. I select Choose by attribute5. I select attribute by name6. the word quote appears in the box7. method of exact match is hilited.8. click ok and all seems well. Problem begins here.********************While hovering over the last box... where I normally drag and drop stuff...1. I click on Set Variable.2. I click on my variable in the box called #myvariable.3. #myvariable pop up into the box.4. Now its time to fil the content box with $scrape chosen attributes...So what do I do to get that statment into the box..********************End of problem. Final steps seem ok..1. Click UI stat monitor2. In label box I type My Variable3. For watch I type #myvariable Quote Link to post Share on other sites
alcr 135 Posted May 17, 2010 Report Share Posted May 17, 2010 Can you upload the script? Quote Link to post Share on other sites
TommyTx 5 Posted May 17, 2010 Author Report Share Posted May 17, 2010 Can you upload the script? It's the script above sample that Net66 gave me.. it works great when I run it, but then I tried to rewrite it exactly as it is and when I get to the point of fillinng the program into the content box I don't understatnd what button to push.... I am just trying to learn how to do a basic input/text box scrape.. and its right there before my eyes but when I try to dupe it... I am leaving out something very important.. As soon as I learn to do the very basic text box scrape the actual project to scrape is below... and it has a command that if someone clicks you dump to their clipboard...onfocus="copy actually will put it on my clipboard..I don't think that will affect my scrapping though... actually it might help as I could foucus it then just grab it off the clipboard vice scrapping... wonder if Ubot has any grab clipboard commands.. <INPUT id=ctl00_SampleContent_ctlCraigslist_txtTitle style="WIDTH: 280px" onfocus="copy('ctl00_SampleContent_ctlCraigslist_txtTitle')" value="Virginia Beach, VA Home for Sale - 3bd 2ba" name=ctl00$SampleContent$ctlCraigslist$txtTitle> Bottom line ... if I can do a text box scrape I should then be able to move on the the live example above.. Thanks for any help.. Quote Link to post Share on other sites
alcr 135 Posted May 17, 2010 Report Share Posted May 17, 2010 Alright so this is the way: choose the input field by attributeset variable #blablabla and leave the content field open mark the empty node inside the set command and right click in the page, $scrape chosen attribute Quote Link to post Share on other sites
TommyTx 5 Posted May 17, 2010 Author Report Share Posted May 17, 2010 Thank you ALCR and Net66 for the code sample.. I finally understand.... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.