title: How to grab HTML snippet via Applescript with Javascript
body: <p>Here is my situation in detail.</p>
  
  <p>I have figured out how to login to a website, not using javascript, but using "keystrokes", "tabs" and "returns" to find the username and password fields.  I know this can be unreliable as websites change but for now I am just trying to keep it simple.</p>
  
  <p>After I log in to a site, like a bank account, I want to grab the account balance and import it to Numbers. </p>
  
  <p>I have figured out how to insert a predermined text into a specific cell in Numbers and probably could expand that to dialog boxes ect, but that is not what I am really trying to accomplish.</p>
  
  <p>Basically I don't know what I need to do to grab the data from the current website after I have logged in.  Doing research I realize it is something todo with javascript.</p>
  
  <p>For now and to apply it to the bigger plan, I just want to know how to locate data of a website that I do not have to log into in Safari via javascript and display the data in the results of Applescript Editor. And I am trying to figure out how I could use that result to display it in another application (ei Numbers).  I then would apply this to other sites, so I would like to know exactly where to look to find the data.</p>
  
  <p>I am thinking that stock websites would be a great example but I am having a tough time finding one that fits this example.</p>
  
  <p>Thank you for your help!</p>