Ok I have curl setup to login to my account on one of my dropshippers sites. I'm trying to create a .csv file from an html page for all out of stock items. I know how to save the file as a .csv using curl, however how can I tell either curl or php to only save from a certain work or section of the html page? Can you only save contents that are in a class="stock-left"?
Example html from distributor: (this repeats for all products)
<div class="stock-left">754-23/m</div><div class="stock-center">Product Name</div><div class="stock-right">out of stock</div>
All I care about is the sku which is located in the class="stock-left" that I need to save in this .csv file for all products on this page. Any ideas?