BeautifulSoup Parser Confusion - HTML?

The problem is that the HTML served from that URL has an empty div. SitesDiv: div id="sitesDiv.

The problem is that the HTML served from that URL has an empty div. SitesDiv: There's a script on the page that fills in the div after the page is loaded. Your Python code doesn't execute the Javascript, so the div is never modified, so it's still empty when your code parses it.

The good news is that the data you're looking for is served to the HTML as JSON from this URL: maps.dnr.state.mn.us/cgi-bin/mapserv54?m... . So you can skip BeautifulSoup altogether, and just read and parse the JSON directly to get the info you want.

Ah, I just noticed that myself and slapped myself on the forehead. I was seeing the output in Firebug which made it look like the original html was formatted this way. – lyngbym Jan 8 at 21:38.

The problem is that the HTML served from that URL has an empty div.sitesDiv.

BeautifulSoup beside it - even if it was a floppy disk.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions