barista 0 Posted December 13, 2009 Report Share Posted December 13, 2009 Hi, I want to scrape some text and add it to the field next to it. The text is generated everytime the page loads. I want to grab the four digit number at the end of the text. The format is like this: "Some text here ...: 1535" I need to grab 1535 and enter it into the field beside it. The number is unique each time the page loads. I have tried all afternoon with various ideas but can't solve it. The HTML around the text is non-unique: <div class="span-7"> <p><label>Step 3. Enter This Number: 1535</label></p> </div> Any thoughts? Thanks Barista Quote Link to post Share on other sites
Aaron Nimocks 19 Posted December 13, 2009 Report Share Posted December 13, 2009 Got a URL to this page? Quote Link to post Share on other sites
Aaron Nimocks 19 Posted December 13, 2009 Report Share Posted December 13, 2009 Use the attached. Quote Link to post Share on other sites
barista 0 Posted December 13, 2009 Author Report Share Posted December 13, 2009 Hi Aaron I had almost got to this point earlier, so thanks for your help for taking it further. Unfortunately the script is generating an error - see screen shot below. I deleted the chunk which does the scrape and assigns it to the variable - there is no error generated. Not sure why this is ... any thoughts? Barista http://i.imgur.com/3jbQr.jpg Quote Link to post Share on other sites
Aaron Nimocks 19 Posted December 13, 2009 Report Share Posted December 13, 2009 Works perfect for me. What IE version are you using? I built with IE8. Quote Link to post Share on other sites
barista 0 Posted December 13, 2009 Author Report Share Posted December 13, 2009 My default browser is Opera v10.10. Does Ubot use the default browser? Quote Link to post Share on other sites
alcr 135 Posted December 13, 2009 Report Share Posted December 13, 2009 My default browser is Opera v10.10. Does Ubot use the default browser? UBot require IE7 or IE8. You can still use Opera, but you need IE installed. Quote Link to post Share on other sites
barista 0 Posted December 13, 2009 Author Report Share Posted December 13, 2009 Hi hmmm ... it's a fact that IE8 does not work at all well with Vista Business. In fact it effing sucks badly with pages not opening properly. This might explain why I've had sucha a weird time - my script caused a lot of problems, for example error messages that continued after I closed Ubot. I had to go into Task Manager to kill everything. Then I did a restart. My script still would not run. So I took yours and added mine to it, piece by piece and it works 95% ok. Does Ubot work ok with Vista Business do you know? Quote Link to post Share on other sites
Guest jackfitz Posted December 14, 2009 Report Share Posted December 14, 2009 I think my problem is similar, can't seem to crack it. http://ubotstudio.com/forum/index.php?topic=394.0 Quote Link to post Share on other sites
alcr 135 Posted December 14, 2009 Report Share Posted December 14, 2009 Hi hmmm ... it's a fact that IE8 does not work at all well with Vista Business. In fact it effing sucks badly with pages not opening properly. This might explain why I've had sucha a weird time - my script caused a lot of problems, for example error messages that continued after I closed Ubot. I had to go into Task Manager to kill everything. Then I did a restart. My script still would not run. So I took yours and added mine to it, piece by piece and it works 95% ok. Does Ubot work ok with Vista Business do you know? UBot works fine on the pc's with Vista Business that I've used. Why not just installing Windows 7 ultimate if you have problems? A much better alternative 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.