I want to start by saying I am pretty new to webscraping and while I have had some sucess working with HTML and the string editing functions I havent been able to figure out downloadin a table.
The overal background is that I am working on a project to build a roster picking model for daily fantasey sports. There are several websites, including the one that i am using, which have relativly acurate projection for each players projected daily points. In order to backtest my model I need to collect projections from past season and so am trying to scrape this site.
The issue is that when visiting that link in a web browser you get a csb with 100's of rows, matching the html page, however when you try to use Webread to systematicly download and save the CSV you only get a slect few of those rows. Code is posted below.
any help would be great!!!!!!
options = weboptions('Timeout',15);
date = datetime(2019,12,12)
useDay = char(string(day(date)));
if size(useDay,2) == 1
useDay = '0' + string(useDay);
useMonth = char(string(month(date)));
if size(useMonth,2) == 1
useMonth = '0' + string(useMonth);
html = webread('https://rotogrinders.com/projected-stats/nhl-skater.csv?site=draftkings&date=' + string(year(date)) + '-' + string(useMonth) + '-' + string(useDay) ,options);