Set Text of Website to a Variable Without Opening the Webpage

Hi Community,
I’m making a rather big ApplescriptObjC application that will do a lot of stock research with the click of a single button. The one big problem I’m running into, is that I can’t figure out how to pull the information off of the web. I need to get all of the text on a page like this copied to a variable (so that I can then use Bash’s grep function to isolate certain lines like “Operating Income,” “Total Revenues,” etc). The one big thing is that I DO NOT want the web page to have to be opened. While I’m fine with Safari being activated, I don’t want anything on the screen except my Application that’s running. Thanks!


cURL can read the source text of a webpage without any browser application

set sourceText to do shell script "curl http://myWebpage.html"