Jump to content

Reading external html table on remote server into excel spreadsheet.


TGWSE_GY

Recommended Posts

Ok here is what I need to achieve and if someone could just point me in the direction that I should be looking that would be great.

 

I have a client, that stores data in HTML tables. I am wondering if there is a way to write a php script that would go to say http://www.domain.com/charts/chartid=22 and it grabbed a table that always appears at a fixed point in the source code and process it into a spreadsheet?

 

thanks

 

Link to comment
Share on other sites

Just break it down into parts and Google them... I would start with "scraping data from a webpage with php". Once you get the source code for the table into a variable you will need to decide how you want to parse out the values. this link might help with that http://bytes.com/topic/php/answers/3699-code-returning-html-table-data-into-array. Once you have the data in the array, you then could search for how to write data to excel with php.

 

Hope that helps

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.