03-05-2020 09:05 PM - edited 03-05-2020 09:06 PM
I want to automate the process of collating my investment performance from multiple stock brokerages. I am using V2011 Professional.
Using the HTML VIs OpenHandle, Get and Closehandle with a file destination, I routed the output to the attached file.
The HTML file says that my 'browser' has to be updated, but the page displays in Explorer after I allow scripts to be run and the screen displays icons which would allow me to maneuver.
The thing is, I don't know how to 'click' on the desired link. I haven't been able to figure out the proper search terms to help me, so I'm asking for advice on where I can get the information I need.
Thanks in advance,
Jeff
03-06-2020 06:15 AM
LV can't (easily) click on links, but what happens when you click manually is a POST message, and you can easily send those. 🙂 Check the HTML code or catch the message and duplicate it in LV.
/Y
03-06-2020 02:20 PM
That's the problem... reviewing the HTML code indicates the virtual buttons are created via Java scripts.
I can, obviously, see what the page looks like in a regular browser window. Is it possible to invoke a mouse click at a given location on the page?
Jeff
03-06-2020 03:00 PM
Do you actually need to click there? Once you're logged in can you just go directly to wherever that buttons leads?
My other thought was to use some 3rd party service to get to stock (or whatever) prices through some sort of API. Here's a list of API's, one might work for you.
05-16-2021 01:32 PM
Sorry for the delay (don't want to appear rude), but I did not notice the notification of your reply.
I suppose that I could capture all the links on a page, with the one I want being constant; this would support my initial task of updating my investment progress automatically.
However, your link of APIs is a lot more interesting for another project I had set aside.
Thank you.
Jeff
05-17-2021 09:35 AM
Scraping a website isn't against the law, but it may run afoul of the site's TOS. Make sure it's okay before you do that.