Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7036573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:26:25+00:00 2026-05-28T01:26:25+00:00

The img src that I need to grab is: div id=recaptcha_image class=width: 300px; height:

  • 0

The img src that I need to grab is:

div id="recaptcha_image" class="width: 300px; height: 57px;" style="width: 300px; height: 57px;">
<img width="300" height="57" src="http://www.google.com/recaptcha/api/image?c=03AHJ_VuvlvMA4JvVIQvDR4C_iDbOTwOF5FUIRPGkkSImDRYAD6sY2L0IxyJSpSP1WGjWqr0MQ-dmjkiIgevFY2gkMpNWi1cQbtgUZB5QaYr_vIHv6xFzG9ydFbBWs4xiEhWoxHEFUYHZj6CCh4obyZSOd2La0nozLZw" style="display:block;">

Here is my code that grabs all the img src tags from any website. The one thing is the img src that I need isn’t listed in the returned results.

How can I correct my code to grab only this one field? Here is my working program…currently is doesn’t load a pic into the picturebox…but it does return the results in the rich text box. Thanks

Dim s As String = TextBox1.Text

Dim hw As New HtmlWeb()
Dim doc As HtmlDocument = hw.Load(s)

Dim items As HtmlNodeCollection = doc.DocumentNode.SelectNodes("//img")
If items Is Nothing Then
    MessageBox.Show("There is nothing to show you")
End If
If items IsNot Nothing Then
    For Each item As HtmlNode In items
        RichTextBox2.Text = RichTextBox2.Text & (item.GetAttributeValue("src", "value") & Environment.NewLine)
        'PictureBox1.Load(item.GetAttributeValue("src", TextBox1.Text & "value"))

    Next
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:26:26+00:00Added an answer on May 28, 2026 at 1:26 am

    Without the complete HTML it is difficult to say, but if you want the src for this specific img you can use the following in SelectNodes (which should probably be changed to SelectSingleNode).

    doc.DocumentNode.SelectSingleNode("//div[@id='recaptcha_image']/img[1]").Attributes("src").Value

    The above will return the src String for the img tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some javascript code that dynamically adds an img tag to a div,
I need a regular expression that can match any url in img src tag
document.getElementById(displayImage).getElementsByTagName(img)[0].src = image2.png I seem to remember that for IE, you need to add
I need to process a HTML content and replace the IMG SRC value with
I need to display in image on the view this way <img src =
Newbie in javascript.. Need a little help. I have a SPAN or IMG that
I have an <img id=mypic> that i need to change with an interval its
I have around 8 img src tags that start like this: <img src= id=joinCityResponse
I got from a json feed this : <img src = http://produits-lemieux.com/produits/bainmoussant_hg.jpg ></img> i
Is it possible to call a JavaScript function from the IMG SRC tag to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.