hotelInfo.py 文件源码

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

项目:ugc.aggregator 作者: Dreamcatcher-GIS 项目源码 文件源码
def intohotel(self,Links):

        url = "http://hotels.ctrip.com/" + Links
        self.driver.get(url)
        self.driver.maximize_window()
        self.driver.implicitly_wait(80)
        time.sleep(3)
        response = HtmlResponse(url="my HTML string",body=self.driver.page_source,encoding="utf-8")
        # ????????
        # self.crawlcommentinfo(commentnum)
        # # ????????
        try:
            items = self.crawlhotelinfo(response,url)
        except:
            items = self.crawlhotelinfo2(response,url)
        # ????????
        self.xiechengDao.savehotelComment(items)



    # ???????????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号