def setUp(self):
self.spider = AldermanSpider()
self.index = TextResponse(
url=self.spider.start_urls[0],
body=open('./tests/samples/alderman_index.html', encoding='windows-1252').read(),
encoding='utf-8'
)
self.item = TextResponse(
url="http://www.camara.rj.gov.br/vereador_informacoes.php?m1=inform&cvd=24",
body=open('./tests/samples/alderman_item.html', encoding='windows-1252').read(),
encoding='utf-8'
) # Carlos Bolsonaro
test_aldermen_spider.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录