dom - Scraping website post data with PHP -
I have a website that wants to scrape www.tiketux.com and I have to fill out this form so that I I can get the data. Tiketux.com / book / pilhjadwal
I have received this data like this
In that page we try to use the DOM and CRL But this data is not loaded, how can someone get me that data?
Thanks
$ options = array ('http' = & Array ('Header' = & gt; "Content-Type: Text / html; Charset = UTF-8 \ r \ n", 'Method' = & gt; 'POST', 'Content' = & gt; http_build_query ([]),)); $ Context = stream_context_create ($ option); $ result = file_get_contents ('https://www.tiketux.com/book/pilihjadwal/post?agen=CPG&keberangkatan=0004&tujuan=153&jumpenumpang=1&datepicker=15%2F10%2F2014&idJurusan=153&katasall = Bandung ', false, $ reference); $ Doc = new DOMDocument (); @ $ Doctor & gt; loadHTML ($ result); DOM-document will be manual from $ doc URL:
Comments
Post a Comment