Jump to content
UBot Underground

scrape some text and add to a field - how ?


Recommended Posts

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

Link to post
Share on other sites

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

Link to post
Share on other sites

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?

Link to post
Share on other sites

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 ;)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...