1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

OCUK New product alert thingy ma bob

Discussion in 'HTML, Graphics & Programming' started by Xplo, 29 May 2006.

  1. Xplo

    Wise Guy

    Joined: 20 Nov 2004

    Posts: 1,648

    Location: UK

    Hey

    I heard recently that someone said they had coded something so when an new product was added to ocuk (in this instance i think it was aimed for b grade) he was informed straight away through email or whatever. Im interested in this and was wondering if anybody could shed some more light on it.

    Cheers
     
  2. Xplo

    Wise Guy

    Joined: 20 Nov 2004

    Posts: 1,648

    Location: UK

    ne1? :(
     
  3. Augmented

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,464

    Location: London Town

    I've not seen anything posted regarding this, but it would be fairly elementary to do with a scripting language like PHP or Perl.

    Since OcUK don't offer XML/RSS feeds of their product listings, each product listing page would need to be screen-scraped at timed intervals and compared to previous versions. Any changes and additions would then need to be extracted and mailed out. Potential issues faced would be the really crufty markup that the Actinic templating uses making it difficult to write code that could efficiently and accurately pick out new/changed products.

    One important point is respecting the potential impact such an application could pose to the website. OcUK (or any commercial entity) may not appreciate having their website continually hit with such traffic - insignificant as it would likely to be - and it may breach terms-of-use policies and such.

    It would be better to suggest that OcUK offer some kind of XML feed for their product lines, allowing users to get immediate updates via screenreader software.
     
  4. Beansprout

    Man of Honour

    Joined: 31 Jan 2004

    Posts: 16,313

    Location: Plymouth

    The forum folk don't mind it being scraped for forum stats so the shop might not mind, either.

    I'd get in touch with OcUK and ask :)