I'm trying to download stock option data from Yahoo Finance (here's Google as an example) with requests.get
, which doesn't seem to be downloading everything. I'm trying to get the dropdown of dates with an XPath but even //option
doesn't return anything even though Chrome DevTools says there are 13 instances!
I expect this has something to do with the fact that the parts of the site that actually matter are being loaded after all the navigation bars and such, and I don't know how to get all of it. Could you please suggest a method for getting the text of each item in the date dropdown menu?