Hi, Shrewd!        Login  
Shrewd'm.com 
A merry & shrewd investing community
Best Of MIBest OfAll BoardsThe Shrewd’m WeeklyLearn to InvestHow to Become Shrewd
Search
Shrewd'm.com Merry shrewd investors
Search
Best Of MIBest OfAll BoardsThe Shrewd’m WeeklyLearn to InvestHow to Become Shrewd


The week's question
In December 2024, in the thread "Re: BRK: Why Not XOM?", BreckHutHigh asked the members: "What about the long road trips with kids?" This week it is put to everyone again. The button below opens the small thread re-asking it - read what others have said so far, then give your own answer as an ordinary reply.
Answer this questionContinue to Shrewd'mThis note won't appear again
Investment Strategies / Mechanical Investing
Unthreaded | Threaded | Whole Thread (13) |
Author: rayvt 🐝  😊 😞
Number: of 6131 
Subject: Re: Retrieving Historical price Data
Date: 03/10/25 9:43 AM
Post New | Post Reply | Report Post | Recommend It!
No. of Recommendations: 3
WSH, the "Windows Scripting Host", and therein the "SendKeys" method, programmatically simulating keystrokes.

All that is required is to have the data you want to grab on screen in a webpage. Then your program sends the keystrokes you would manually use to select, copy and paste into an Excel sheet


I don't know if even that would work with some of the sources I previously used.

My internet is a slow DSl (the downside of being in the mountains), so I can sometimes see how a web page is painted.
One of the sources (WSJ, I think) used to put all the data up in one go. Then they changed it and only the static text is painted at first. Then, probably by some java scripting, the data fields are populated. Slow enough on my connection that I can see the data values get painted one at a time. It takes 1-2 seconds for the page to stabilize.

The 99% of the rest of the world are on faster internet, 10 times faster than mine, so they wouldn't see it.

I suspect WSH and the like would have trouble with this.

I am aware of various methods of sending keystrokes, but didn't feel the work was worth the effort, so I gave up on the screen(s) that needed that data.
Post New | Post Reply | Report Post | Recommend It!
Print the post
Members reply directly to rayvt here — and replies get answered. Reading is free; so is joining the conversation. Join Shrewd'm »
This community has written 6,115 posts about Mechanical Investing. The article-length ones it recommended most:
Dividend investing · 52 recs · 2025
Non-Mag7 screen · 34 recs · 2025
OT - Div yields and returns · 32 recs · 2024
Using AI to generate backtesting programs · 30 recs · 2025
Rankings for 19Dec2022 · 29 recs · 2022
Unthreaded | Threaded | Whole Thread (13) |


Announcements
Mechanical Investing FAQ
Contact Shrewd'm
Contact the developer of these message boards.

Best Of MI | Best Of | Favourites & Replies | All Boards | Followed Shrewds | Open Questions | Moving a community