test_aldermen_spider.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:vigilante 作者: VigilantePolitico 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号