Need help getting html page contents
For some time now I'm struggling to get some div content from this page
http://dbpedia.org/page/Milan
All I need is this part:
Milan is a city in Italy and the capital of the region of Lombardy and of the province of Milan. The city proper has a population of about 1,300,000, while the urban area is the fifth largest in the European Union with an estimated population of 4,300,000. The Milan metropolitan area, by far the largest in Italy, is estimated by the OECD to have a population of 7,400,000. The city was founded under the name of Mediolanum by the Insubres, a Celtic people.
I've checked the source of the page and found out that this info resides inside <div id="content"> in <p>.
Now, I tried the following:
$.ajax({
url: "http://dbpedia.org/page/"+qq,
cache: false,
async: false,
success: function(html){
hsummary = $(html).find($("#content")).find("p").text(); }
});
But it doesn't work. I'm pretty new to jquery, so there might be a lot of things wrong with that.
I'll be glad for any assistance possible.
Thanks in advance,
Pavel