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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

SuperValu App API?

  • 01-12-2014 8:34pm
    #1
    Registered Users, Registered Users 2 Posts: 156 ✭✭


    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,242 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, Registered Users 2 Posts: 11,989 ✭✭✭✭Giblet


    Fiddler :)


  • Registered Users, Registered Users 2 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, Registered Users 2 Posts: 156 ✭✭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, Registered Users 2 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, Registered Users 2 Posts: 156 ✭✭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, Registered Users 2 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