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

  • Home
  • SEARCH
  • 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 6230781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:48:50+00:00 2026-05-24T09:48:50+00:00

I am screen scraping a webpage and sending it as a html email. What

  • 0

I am screen scraping a webpage and sending it as a html email.

What is the easiest/best way to manipulate the html to set full http addresses for all images and css files?

Current method is similar to (manually typed) + this is very open to error.

string html = rawHtml.replace("=\"", "=\"" + Request["SERVER_NAME"]);

.
.

Here is the current function we use to screen scrape using GET

public static string WebGet(string address)
{
    string result = "";
    using (WebClient client = new WebClient())
    {
        using (StreamReader reader = new StreamReader(client.OpenRead(address)))
        {
            string s = reader.ReadToEnd();
            result = s;
        }
    }

    return result;
}
  • 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-24T09:48:50+00:00Added an answer on May 24, 2026 at 9:48 am

    It sounds like what you need is an HTML parser. Once you parse the html string with the parser, you can execute commands that easily manipulate the DOM, and thus you could find all img elements, check their src and append the Request[“SERVER_NAME”] if you need to.

    I don’t code in ASP, but I found this:

    http://htmlagilitypack.codeplex.com/

    And here is a useful article I found explaining how to use it:

    https://web.archive.org/web/20211020001935/https://www.4guysfromrolla.com/articles/011211-1.aspx

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

Sidebar

Related Questions

I'm doing some screen scraping using WATIJ, but it can't read HTML tables (throws
I found the HTML Agility Pack useful and easy to use for screen scraping
which one is better for screen scraping? simple html dom or snoopy ?? i
I'm screen-scraping an HTML page which contains: <table border=1 class=searchresult cellpadding=2> <tr><th colspan=2>Last search</th></tr>
I'm trying to do some screen scraping, and discovered the HTML AgilityPack, but am
I am working on upgrades to a screen scraping application. We are using an
I'm working on some screen scraping software and have run into an issue with
I want to write crawler for screen scraping What I want is, I want
I am trying to do some screen-scraping of a website. The content that I
I have been thinking quite a bit here lately about screen scraping and what

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.