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 7772785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:57:29+00:00 2026-06-01T16:57:29+00:00

MSDN is a huge hierarchical doc site. To be more precise, the content is

  • 0

MSDN is a huge hierarchical doc site.

To be more precise, the content is organized in a hierarchical manner, but the URLs are not. The URL space is flat, making it look like everything is in the same directory. (In reality, there probably isn’t a directory; I guess things are coming out of some other database; but that’s not relevant here.)

So if you want to download part of MSDN, say, the NMake manual, you can’t just recursively download everything below a given directory. Because that will be all of MSDN. Too much for your hard drive and bandwith.

But you could write a script that looks at the DOM (HTML) to then follow and download only those links contained in certain navigational sections of the document, like those of CSS class attribute toc_children and toc_siblings, but not toc_parent.

What you’d need would be some downloader that allows you to say:

$webclient->add_links( $xpath_expression ); # or
$webclient->add_links( $css_selector );

It shouldn’t be too difficult to cobble something together using Perl, LWP and XML::LibXML (HTML parser), but maybe you know of a tool that allows you to do just that so I don’t need to reinvent it.

It doesn’t have to be Perl, any other language is fine, too, and so is a ready-made program that has the flexibility required for this job.

  • 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-06-01T16:57:31+00:00Added an answer on June 1, 2026 at 4:57 pm

    Check out the find_link function (and siblings) from WWW::Mechanize. It can use arbitrary criteria to find links including the “id” and “class” attributes.

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

Sidebar

Related Questions

MSDN docs say that only value types need boxing, but this does not apply
MSDN says that public static members of System.Windows.Application are thread safe. But when I
I have this huge RegEx for matching credit cards numbers. But its PCRE. Works
MSDN does not list a WPF .exe as a supported type of application for
MSDN states that gacutil.exe is not safe to use for production servers . Is
I'm trying to read an xml document but the XmlReader.ReadToNextSibling does not work as
MSDN says : The default implementation of the GetHashCode method does not guarantee unique
The MSDN documentation for the is keyword says: expression is not null Why? If
Msdn doc for IsolatedStorageFile.IncreaseQuotaTo states that: To increase the quota, you must call this
I would look this up on Google/MSDN, but I have no idea what it's

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.