On 1/11/20 2:39 PM, Friedrich Rentsch wrote:
Hi all,

I'm pretty good at hacking html text. But I have no clue how to get dynamic data like this : "At close: {date} {time}". I would appreciate a starting push to narrow my focus, currently awfully unfocused. Thanks.

Frederic

Thanks for bothering. I'm sorry for having been too terse. The snippet was from an html download (wget https://finance.yahoo.com/quote/HYT/history?p=HYT). Here's a little more of it:  ".  .  .  ED_SHORT":"At close: {date} {time}","MARKET_TIME_NOTICE_CLOSED":"As of {date} {time}. {marketState}","MARKE . . .". I suppose the browser gets the values whose names appear in braces, dialoguing with the server. I believe it is javascript. I see sections marked <script> . . . section here . . . </script>. If it is javascript, the question would be how to run javascript in python, unless it runs on the server by requests sent by python from my end.

Frederic


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to