Sign in to follow this  
Followers 0
bdenn

Get Data OFF Webpage

2 posts in this topic

#1 ·  Posted

Hello,

I have searched and searched the web for an answer on how to get data from a webpage and paste it into a notepad document.

The problem is I need to access a website that is not on the internet but yet only on our local network so the IP will be "192.168.125.xxx"
This site only displays a few things but what I need to do is pull two parts of information that are located in a table. looking at this as an excel point of view this would be cells B2 and C2. These cells hold two numbers that say 850 Watts and 3 Watts, but they change all the time.

If I do a page "inspect element" I can see these exact numbers in the source code but very deep.

Currently I have the following code:

run ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")
        sleep(500)
        Send("192.168.125.xxx")
        Send("{Enter}")
        sleep(100)
        Send("password")
        Send("{Enter}")

How do I get AutoIT to see these two data points and copy and paste them into a notepad.
I do not really need the webpage to open, but will deal with it if I need to.

** I have attached an image of the data I need.

Thanks,
Bdenn

Webpage Data Needed.PNG

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

seems  you need functions from the ie.au3 library.
to extract a table from a web page opened within internet explorer, have a look to the _IETableWriteToArray() function examples and related examples on the forum..

Edited by Chimp
1 person likes this

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • FrancescoDiMuro
      By FrancescoDiMuro
      Good morning
      I'm working on a little project, and I was wondering if there's a way ( sure there is ) to insert data to a ComboBox control everytime the user insert some text in the ComboBox which is not in the ComboBox data. I'll try to explain with an example:
      - Form with some data ( ComboBox is empty );
      - User prompt something in the ComboBox: if what the user prompts is not in the ComboBox values ( at the moment empty ), then insert the value in the ComboBox values, in order to have, next time the user prompts the form, the value that he entered.
      More pratical example:
      - First call of the form, ComboBox empty;
      - I prompt "A" in the ComboBox;
      - Second call, in the ComboBox I should see "A";
      - I prompt "B" in the ComboBox;
      - Third call, I should see "A"
                                                 "B";
      - And so on...
      Everytime the form is called, I re-create it, so I think I can't use _GUICtrlComboBox_AddStrings().
      I tried with
      Global $strCboStrings = "" ; When the user prompt the form, the code below is executed. ; I.E. : User prompt "A", after the if I should have "A"; ; In the second call, If I write "B", I should see "A" ; "B"; ; If I write "A" again, in the combobox values should not be any changes. If Not StringInStr($strCboStrings, GUICtrlRead($cboVoiceCategory)) <> 0 Then $strCboStrings &= $strCboStrings & "|" & GUICtrlRead($cboVoiceCategory) EndIf Any suggestion?
      Thanks
    • FrancescoDiMuro
      By FrancescoDiMuro
      Good morning community!
      I am working on a script which read from a text file ( .txt ) and should import all the content in a SQLite3 DB, in order to execute some queries that should be difficult to execute on a text file.
      So, I was looking for something very very fast, because the file could be very large ( I don't know exaclty how much can became big, but I know a lot of rows, it's a log file ... )
      I found the "Import method", but I don't know If I can implement it in a query ( @jchd, it's your turn!  )
      Do you know some methods that I can implement in my script to have a very very fast import of thousands and thousands rows in a SQLite3 DB?
      Thanks a lot
      Francesco
    • sswcharlie
      By sswcharlie
      For a model railway project only.  Using multiple  rfid readers. These readers have no PID or VID or serial numbers.
      Only difference is the hub/port number allocated.

      Using Win7  32 bit.

      The only information I need to obtain from the HID devices is:

      hub/port number
      last string transmitted.  (14 character string of the rfid tag number)
      timestamp of the latest reading.

      The tag data will be moved to excel immediately after received by usb ready for the next read.  Timestamp and data would be overwritten by next set of data.
      the GUI would have single line for each reader (by hub/port #) with 3 headings.  Timestamp, 14 character data, and hub/port # .
      Is it possible for Autoitscript to have a GUI to do this ?

      Thankyou

      Charles Harris
       
    • AmarokStudios
      By AmarokStudios
      Hello all! I'm trying to figure out how to display the contents of my Microsoft Outlooks inbox inside of an AutoIt GUI.
       
      So far, I've managed to embed it perfectly and the website looks fantastic, but whenever I click on a message in my inbox, I can't view it. I also can't create new messages or search my inbox. I figured this was probably an ActiveX or JavaScript incompatibility. Any ideas?
       
      Local $oIE = _IECreateEmbedded() $browserObj = GUICtrlCreateObj($oIE, 20, 60, 780, 580) _IENavigate($oIE, "https://outlook.office.com/owa/#path=/mail")  
    • PEscobar
      By PEscobar
      $Combo1 = GUICtrlCreateCombo("", 72, 96, 113, 25) GUICtrlSetData(-1, "Test1|Test2") $1 = GUICtrlRead($combo1)  
      So if someone selected Test 1 on the GUI, what value is $1? How about if they selected Test 2?