Question Extract specific text from a webpage

imaginary

New member
Joined
Apr 18, 2014
Messages
1
Programming Experience
Beginner
Ok so I have a webpage. I want to extract specific text from it. Tried lots of solutions but they extract things from the HTML source code, and i want to extract the text from the "live page". Tried with the webbrowser, but it gives a COM error : "Error HRESULT E_FAIL has been returned from a call to a COM component."

This is the website : https://filippo.io/Heartbleed/

If we add #hostname.com --> https://filippo.io/Heartbleed/#hostname.com

It can give 3 results : vulnerable, unaffected and "Uh-oh, something went wrong" (means the site can't give a clear diagnosis)

Now we have this, from Mozilla's inspect element.
image.png


That block in the bg-warning bleed bleed-error hides the other bgs. I tried to download the string (with downloaddata, downloadstring, streamreader) and when we find which line from bg-warning bleed bleed-error,bg success and bg-danger contains that block instead of none, to display a specific msgbox or text in a label...
But the problem... Everything i tried downloads a source which doesn't contain the lines that are marked by me... I used Inspect element from Firefox, and wanted what's inside, but with downloaddata,downloadstring,and streamreader it only gets page source... I want the content from Inspect element...
 
Back
Top