does anyone know how I can scraping the data from that website using with <a id=rowTitle3 to the end of the page?

any advice would be much appreicated.

Thanks in advance

04-15-2013, 10:00 AM

NogDog

Have you confirmed that $contents actually contains the expected HTML text?

Also, you may find the DOM extension to be a more robust way to grab data than preg functions.

04-15-2013, 10:58 AM

mark107

yeah I am confirmed that $contents actually contains in the expected HTML text. But I am looking for to match the data before ouput them in my php.

Could you please post the source for variable that I am looking for to match the data and then to output them to my php?

04-15-2013, 12:55 PM

NogDog

PHP Code:

'/<a id="rowTitle3".*/is' // "s" modifier makes "." include newlines

04-15-2013, 04:08 PM

mark107

Thank you for your help. I have got a problem with scraping the data from a website that I use to output the data in my php. It did not scraping the correct data in a correct time, e.g my local time is 10:00pm and the current time of the tv programme is 5:00pm. I can only scraping the data that is outside of the current time of tv programme like 3:00pm.