Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Beauty Soup进行xhtml解析没有结果_Xhtml_Beautifulsoup - Fatal编程技术网

使用Beauty Soup进行xhtml解析没有结果

使用Beauty Soup进行xhtml解析没有结果,xhtml,beautifulsoup,Xhtml,Beautifulsoup,我正试图从http://newyork.craigslist.org/search/vga?format=rss在我创建搜索引擎的过程中,使用Beautiful Soup模块。但当我在Python 2.7 shell中键入此命令时,没有得到任何结果: >>>soup.select('div.entry') [] 也许我没有正确解析xhtml,但我不明白为什么会得到一个空集。我尝试了(div.feedEntryContent),得到了相同的结果。您检查过页面上的元素了吗?当我

我正试图从
http://newyork.craigslist.org/search/vga?format=rss
在我创建搜索引擎的过程中,使用Beautiful Soup模块。但当我在Python 2.7 shell中键入此命令时,没有得到任何结果:

 >>>soup.select('div.entry')
[]

也许我没有正确解析xhtml,但我不明白为什么会得到一个空集。

我尝试了
(div.feedEntryContent)
,得到了相同的结果。您检查过页面上的元素了吗?当我这样做时,我看到了
。在这种情况下如何解析xhtml?什么xhtml?rss不是xhtml。