Jump to content
UBot Underground

I Need Help With Some Logic Scraping

Recommended Posts

Hi Ubotters


I need your help!


I am trying to scrape the results page which appears when you request a quotation from http://www.flexicover.co.uk


Now here is my problem, Some times policies Bronze, Silver, Gold & Platinum appear and other times only maybe Brionze & Gold


So what happens is this


Bronze could be data-quoteindex="1"> and another time Gold could be data-quoteindex="1">


I need a way of scraping the price and the package name e.g. Gold or Silver in a organised table


Any help would be much appreciated



Link to post
Share on other sites


I would start with something like the code below.

I ran it on a couple of scenarios on http://www.flexicover.co.uk and it let's me know what the page has on it.


set(#BrowzeFound$scrape attribute(<innertext="Bronze">"innertext"), "Global")
set(#SilverFound$scrape attribute(<innertext="Silver">"innertext"), "Global")
set(#GoldFound$scrape attribute(<innertext="Gold">"innertext"), "Global")
set(#PlatinumFound$scrape attribute(<innertext="Platinum">"innertext"), "Global")


Then I would alter what I do:


IF this found THEN Do this

IF that found THEN Do that, etc...


You could have lots of IF statements or you could be clever and create code that is dynamic to what was found.

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.

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.

  • Create New...