- 博客(1)
- 资源 (3)
- 收藏
- 关注
原创 精通scrapy爬虫——一个简单的爬虫
1.3.4 实现spider分析完页面之后,接下来我们来编写爬虫。在scrapy中编写爬虫,即实现一个scrapy.Spider的子类实现爬虫的Python文件应该位于spiders文件夹下,这里我们创建一个名叫books_spider.py的爬虫,其代码如下:import scrapyclass BookSpider(scrapy.Spider): name = 'books'...
2019-12-23 11:53:38 206
17-republic.txt
I went down yesterday to the Piraeus with Glaucon the son of Ariston,
that I might offer up my prayers to the goddess (Bendis, the Thracian
Artemis.); and also because I wanted to see in what manner they would
celebrate the festival, which was a new thing. I was delighted with the
procession of the inhabitants; but that of the Thracians was equally,
if not more, beautiful. When we had finished our prayers and viewed the
spectacle, we turned in the direction of the city; and at that instant
Polemarchus the son of Cephalus chanced to catch sight of us from a
distance as we were starting on our way home, and told his servant to
run and bid us wait for him. The servant took hold of me by the cloak
behind, and said: Polemarchus desires you to wait.
2019-10-28
movie-review-text-classifier-master.zip
这是一个电影评论集文件,文件解压后里面会有一个txt_sentoken的文件夹,里面有pos和neg两个子目录分别放置正面评论和负面评论
2019-10-16
Metamorphosis.txt
One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked.
2019-10-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人