I’m using CURL to extract some real estate listings.
But, recently, a website changed his way to communicate the phone number:
The visitor must click on a “Show the phone number” link that returns the result in jSon.
I found these information with Firebug:
http://www.realestate.com/phone/click.json?Id=023DSFS
And for the linkn the code source is (obiously):
<a href="#" class="showDetail">Show the phone number</a>
So, how can I simulate a click and put store my result in a php var?
Thank you,
Regards.
Maybe you can simply do
This is assuming
allow_url_fopen = Onand you don’t need to have specific cookies for the http request to return the results.