debate.py 文件源码

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

项目:presidency 作者: jayrav13 项目源码 文件源码
def retrieve(self):

        url = 'http://www.presidency.ucsb.edu/ws/index.php?pid='

        page = requests.get(url + str(self.id))
        tree = html.document_fromstring(page.text)

        self.data = {
            "text": tree.xpath('//span[@class="displaytext"]')[0].text_content()
        }

        return self.data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号