Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

SuperValu App API?

Options
  • 01-12-2014 9:34pm
    #1
    Registered Users Posts: 155 ✭✭


    SuperValu have an online shopping app with all their products listed. Does anyone know if there is an API to access their products, prices etc like Tesco have?

    I have tried sending them a few emails but unfortunately no reply!


Comments

  • Moderators, Computer Games Moderators, Technology & Internet Moderators Posts: 19,240 Mod ✭✭✭✭L.Jenkins


    I'd ring head office and see. Not being funny, but I have contacted the likes of Tesco and Musgraves regarding Open Sourcing of Data, and no word.


  • Registered Users Posts: 11,979 ✭✭✭✭Giblet


    Fiddler :)


  • Registered Users Posts: 262 ✭✭Banta


    Well there's an API alright. Just search for "supervalu api". No idea who'd you mail to get access and the callouts for it though.


  • Registered Users Posts: 155 ✭✭dahayeser


    Banta wrote: »
    Well there's an API alright. Just search for "supervalu api". No idea who'd you mail to get access and the callouts for it though.

    Thanks, spotted that alright but is seems to only list their stores.

    It's their products I am interested in and they are all listed here - http://shop.supervalu.ie/

    I was thinking I could maybe scrape some pages for the data but it's all behind a login.


  • Registered Users Posts: 586 ✭✭✭Aswerty


    dahayeser wrote: »
    Thanks, spotted that alright but is seems to only list their stores.

    It's their products I am interested in and they are all listed here - http://shop.supervalu.ie/

    I was thinking I could maybe scrape some pages for the data but it's all behind a login.

    The login shouldn't be an issue. You can just POST the login credentials before doing your scraping.


  • Advertisement
  • Registered Users Posts: 155 ✭✭dahayeser


    Aswerty wrote: »
    The login shouldn't be an issue. You can just POST the login credentials before doing your scraping.

    I'm not great on the server side but I picked out the names of the 2 from fields and tried using curl to process the login but no luck.

    Then using firebug I examined the post request sent to - https://shop.supervalu.ie/shopping/StartShopping/login.aspx

    There seemed to be a lot more variables posted so I constructed a curl request with everything posted but still no good


  • Registered Users Posts: 586 ✭✭✭Aswerty


    dahayeser wrote: »
    I'm not great on the server side but I picked out the names of the 2 from fields and tried using curl to process the login but no luck.

    Then using firebug I examined the post request sent to - https://shop.supervalu.ie/shopping/StartShopping/login.aspx.

    There seemed to be a lot more variables posted so I constructed a curl request with everything posted but still no good

    All I can say is make sure you are doing a HTTP POST and not a HTTP GET. A POST is used for form submissions whereas a GET is used when loading pages. This might be useful (or just read the man page) http://curl.haxx.se/docs/httpscripting.html#POST

    On a side note. If you get a successful response it should contain a cookie (I'm assuming this is how they are tracking authentication). Any GET performed after the authentication for resources behind the login will have to contain said cookie.


Advertisement