Search code examples
phpscreen-scrapinghtml-content-extraction

Scraping from wsj.com or finance.yahoo.com


I want to display on a wordpress page the total volume of shares traded on the NYSE stock exchange the last 2 weeks that it's been open. What is the best way to go about doing this?


Solution

  • Yahoo Finance lets you export their data. For a ticker, on the left sidebar there is a link to Historical Prices. On the bottom of that page there is a link "Download To Spreadsheet".

    You could pass that to fgetcsv to parse it.