Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Getting an image through element id

Call it a stupid fucking project because it is one.

I want to get an image from a website through it's id.

Within the id it has a src="Image I want"

As shown here,
Code
<img class="no-click screenshot-image" src="https://image.prntscr.com/image/pR1PH2hVScapzrYo1CWWEQ.png" crossorigin="anonymous" alt="Lightshot screenshot" id="screenshot-image" image-id="kjh7vf">

Code
Dim omg = "screenshot-image"
        label1.text = WebBrowser1.Document.GetElementById(omg).GetAttribute("scr")

I can't understand why it's pulling up nothing for the scr
(Mar 15, 2021 06:54 AM)Davkul Wrote:  I don't think this is the right section honestly, but anyhow, in the last part of the code you typed "scr" instead of "src", perhaps that is your issue.

Dude wow, your right. Thanks. Guess coding while tired can do that
It's a visual basic vids, anyway, problem solved! I continue the adventure
(Mar 15, 2021 06:54 AM)Davkul Wrote:  I don't think this is the right section honestly, but anyhow, in the last part of the code you typed "scr" instead of "src", perhaps that is your issue.

Dim omg = "screenshot-image"

That looks like Visual Basic to me.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by roosiinfidel09Aug 19, 2021 07:32 AM 1 173 Aug 19, 2021 07:32 AM
Last Post: john__john
[Python] by roosiinfidel09May 31, 2020 08:58 AM 9 310 May 31, 2020 08:58 AM
Last Post: synchronizing
[C#] by C++Dec 29, 2019 06:16 PM 16 830 Dec 29, 2019 06:16 PM
Last Post: DNA