how to get prices from Playstation Store

9.8k views Asked by At

I guess it is loaded by ajax.

I already tried CURL, DOMDocument and PHP Simple HTML DOM Parser

Details:

I'm trying to get the price of games on Playstation Store. I have an url like https://store.sonyentertainmentnetwork.com/#!/en-us/jogos/shadow-of-the-colossus/cid=UP9000-NPUA80677_00-SOTC000000000001 and I want to get the price. <div class="price">$19.99</div>

I just noticed that if you check the source code of the page, it does not have any element displayed on page, that is because I believe all is loadaded by something like ajax and I guess PHP parses will never work here.

I tried Jquery AJax(), Get() and Load() functions and I did not get success. Some problem with crossdomain.

There is a website called PSN Prices that can do it.

Additional Info:

It is totally for personal purpose, I just want to do some kind of wishlist and follow prices by myself.

Sorry my english.

2

There are 2 answers

5
Cornwell On BEST ANSWER
3
Goikiu On

Have you tried include the site (with the price) within an iframe and then accessing the data with javascript/jquery?