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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:35:30+00:00 2026-06-11T14:35:30+00:00

I am trying to find or build a web scraper that is able to

  • 0

I am trying to find or build a web scraper that is able to go through and find every state/national park in the US along with their GPS coordinates and land area. I have looked into some frameworks like Scrapy and then I see there are some sites that are specifically for Wikipedia such as http://wiki.dbpedia.org/About. Is there any specific advantage to either one of these or would either one work better to load the information into an online database?

  • 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-11T14:35:31+00:00Added an answer on June 11, 2026 at 2:35 pm

    Let’s suppose you want to parse pages like this Wikipedia page. The following code should work.

    var doc = new HtmlDocument(); 
    doc = .. //Load the document here. See doc.Load(..), doc.LoadHtml(..), etc.
    
    //We get all the rows from the table (except the header)
    var rows = doc.DocumentNode.SelectNodes("//table[contains(@class, 'sortable')]//tr").Skip(1);
    foreach (var row in rows) {
        var name = HttpUtility.HtmlDecode(row.SelectSingleNode("./*[1]/a[@href and @title]").InnerText);
        var loc = HttpUtility.HtmlDecode(row.SelectSingleNode(".//span[@class='geo-dec']").InnerText);
        var areaNodes = row.SelectSingleNode("./*[5]").ChildNodes.Skip(1);
        string area = "";
        foreach (var a in areaNodes) {
            area += HttpUtility.HtmlDecode(a.InnerText);
        }
    
        Console.WriteLine("{0,-30} {1,-20} {2,-10}", name, loc, area);
    }
    

    I tested it, and it produces the following output:

    Acadia                         44.35A°N 68.21A°W    47,389.67 acres (191.8 km2)
    American Samoa                 14.25A°S 170.68A°W   9,000.00 acres (36.4 km2)
    Arches                         38.68A°N 109.57A°W   76,518.98 acres (309.7 km2)
    Badlands                       43.75A°N 102.50A°W   242,755.94 acres (982.4 km2)
    Big Bend                       29.25A°N 103.25A°W   801,163.21 acres (3,242.2 km2)
    Biscayne                       25.65A°N 80.08A°W    172,924.07 acres (699.8 km2)
    Black Canyon of the Gunnison   38.57A°N 107.72A°W   32,950.03 acres (133.3 km2)
    Bryce Canyon                   37.57A°N 112.18A°W   35,835.08 acres (145.0 km2)
    Canyonlands                    38.2A°N 109.93A°W    337,597.83 acres (1,366.2 km2)
    Capitol Reef                   38.20A°N 111.17A°W   241,904.26 acres (979.0 km2)
    Carlsbad Caverns               32.17A°N 104.44A°W   46,766.45 acres (189.3 km2)
    Channel Islands                34.01A°N 119.42A°W   249,561.00 acres (1,009.9 km2)
    Congaree                       33.78A°N 80.78A°W    26,545.86 acres (107.4 km2)
    Crater Lake                    42.94A°N 122.1A°W    183,224.05 acres (741.5 km2)
    Cuyahoga Valley                41.24A°N 81.55A°W    32,860.73 acres (133.0 km2)
    Death Valley                   36.24A°N 116.82A°W   3,372,401.96 acres (13,647.6 km2)
    Denali                         63.33A°N 150.50A°W   4,740,911.72 acres (19,185.8 km2)
    Dry Tortugas                   24.63A°N 82.87A°W    64,701.22 acres (261.8 km2)
    Everglades                     25.32A°N 80.93A°W    1,508,537.90 acres (6,104.8 km2)
    Gates of the Arctic            67.78A°N 153.30A°W   7,523,897.74 acres (30,448.1 km2)
    Glacier                        48.80A°N 114.00A°W   1,013,572.41 acres (4,101.8 km2)
    (...)
    

    I think that’s a start. If some page fails, you have to see if the layout changes, etc.

    Of course, you will also have to find a way of obtaining all the links you want to parse.

    One important thing: Do you know if is permitted to scrape Wikipedia? I have no idea, but you should see if it is before doing it… ;)

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

Sidebar

Related Questions

I am trying to find the way to build complex web pages with MVC3
I have been trying to find a book or web reference that gives me
I'm trying to build a web application in which users can invite their friends
I'm trying to build our web application automatically. I need to be able to
I am trying to build a web interface for an embedded device, that will
I am trying to build a web application that will use an LDAP server
I am trying to find the best way to build a dynamic linq query
I'm trying to find the best way to build/package an Android app for 6+
I am trying to find a system/platform to build off of to make it
I'm having trouble trying to find the right way to use MSBuild to build

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.