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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:15:22+00:00 2026-06-05T05:15:22+00:00

I am gathering data about different universities and I have a question about the

  • 0

I am gathering data about different universities and I have a question about the follow error after executing the following code. The problem is when using htmlParse()

Code:

url1 <- “http://nces.ed.gov/collegenavigator/?id=165015&#8221;

webpage1<- getURL(url1)

doc1 <- htmlParse(webpage1)

Output:

Error in htmlParse(webpage1) : File

!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;

html xmlns=”http://www.w3.org/1999/xhtml&#8221; head id=”ctl00_hd”meta http-equiv=”Content-type” content=”text/html;charset=UTF-8″ /title

    College Navigator - National Center for Education Statistics

/titlelink href=”css/md0.css” type=”text/css” rel=”stylesheet” meta name=”keywords” content=”college navigator,college search,postsecondary education,postsecondary statistics,NCES,IPEDS,college locator”/meta meta name=”description” content=”College Navigator is a free consumer information tool designed to help students, parents, high school counselors, and others get information about over 7,000 postsecondary institutions in the United States – such as programs offered, retention and graduation rates, prices, aid available, degrees awarded, campus safety, and accreditation.”meta>meta name=”robots” content=”index,nofollow”/metalink

I have webs scraped pages before using this package and I never had an issue. Does the name=”robots” have anything to do with it? Any help would be greatly appreciate.

  • 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-05T05:15:24+00:00Added an answer on June 5, 2026 at 5:15 am

    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fnces.ed.gov%2Fcollegenavigator%2F%3Fid%3D165015
    indicates the webpage is badly formed. Your browser can compensate for this but your R package is having problems.

    if you are using windows you can get the IE browser to fix it for you as follows:

    library(rcom)
    library(XML)
    ie = comCreateObject('InternetExplorer.Application')
    ie[["visible"]]=T # true for debugging
    comInvoke(ie,"Navigate2","http://nces.ed.gov/collegenavigator/?id=165015")
    while(comGetProperty(ie,"busy")||comGetProperty(ie,"ReadyState")<4){
     Sys.sleep(1)
     print(comGetProperty(ie,"ReadyState"))
    }
    myDoc<-comGetProperty(ie,"Document")
    webpage1<-myDoc$getElementsByTagName('html')[[0]][['innerHTML']]
    ie$Quit()
    doc1 <- htmlParse(webpage1)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my winform application gathering data using databinding. Everything looks fine except that
First of all, there is no code with me ... I'm gathering required data
I have been gathering information in this site and others about the best way
I'm having issues gathering data using JSON on the Songkick API. I'm really new
I have one process that's gathering data in real time and another process that's
I have a JSF page (using MyFaces 2.0) that does a bit of data
I have this query for gathering the information about a single order and its
I am gathering data from youtube's gdata API and would like to use the
So I'm trying to automate a pretty tedious data gathering process from hundreds of
In general the SDLC has the following phase requirement gathering design coding testing deployment

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.