Screen-scraping is a generally flawed system as your code is at the mercy of the design of a foreign site.
Unless they create the pages especially for you with a legal agreement/contract in place, they have no motivation to keep the structure the same.
You can of course use fopen() to fetch pages, use DOMDocument::parseHTML to parse HTML, then traverse the DOM to get what you want, but it is highly unlikely that it will continue working indefinitely.
Your best bet is to get an agreement with the companies for a machine-readable interface that won't change without warning.
Mark