LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically maneuvering through a web page

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

 

Download All
0 Kudos
Message 1 of 6
(3,540 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 6
(3,484 Views)

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

 

0 Kudos
Message 3 of 6
(3,458 Views)

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.

—Ben
Prevent your computer from sleeping programmatically!
Use Power Requests
Download from GitHub

0 Kudos
Message 4 of 6
(3,446 Views)

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

 

0 Kudos
Message 5 of 6
(2,887 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 6
(2,841 Views)