문제

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top