我正在使用 Scrapy 获取文章。
>>> articletext = hxs.select("//span[@id='articleText']")
>>> for p in articletext.select('.//p'):
... print p.extract()
...
<p class="byline">By Patricia Reaney</p>
<p>
<span class="location">NEW YORK</span> |
<span class="timestamp">Tue Apr 3, 2012 6:19am EDT</span>
</p>
<p><span class="articleLocation">NEW YORK</span> (Reuters) - Ba
track of finances, shopping and searching for jobs are the mai
et users around the globe, according to a new international
survey.</p>
<p>Nearly 60 percent of people in 24 countries used the web to
account and other financial assets in the past 90 days, making
ar use of the Internet.</p>
<p>Shopping was not far behind at 48 percent, the Ipsos poll fo
and 41 percent went online in search of a job.</p>
<p>"It is easy. You can do it any time of the day and most of t
on't have fees," said Keren Gottfried, research manager for Ips
Affairs, about banking online.</p>
我希望删除署名、时间戳和文章位置,只留下文章。或者更好的是,只提取文章。我怎样才能做到这一点?