![](https://img-blog.csdnimg.cn/20200529144626681.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
爬虫
爬虫
小码良
无聊但有趣
展开
-
Python爬取携程机票代码实例
Python爬取携程机票代码实例现在携程的页面是通过接口传递数据的,不能直接使用xpath进行解析,需要模拟调用接口的步骤dcity是指出发地的城市编码acity是指目的地的城市编码其他参数是根据前端页面直接复制过来的,Mac 的Chrome浏览器如下图def getResponse(fromCity,toCity,date): cityInfo = judgeCity(fromCity,toCity,date) dcity = cityInfo.get('dcity')原创 2020-05-15 18:04:51 · 3896 阅读 · 6 评论 -
Python爬取第一电影天堂最新电影(5000多部)代码实例(一)
1、实例代码:#!/usr/bin/env python#-*- coding: utf-8 -*-#@Time : 2020/4/7 16:28#@Author : zhangliangliang#@File : crawlerDemo3.py#@Software: PyCharmfrom urllib import requestfrom lxml import...原创 2020-04-10 10:26:05 · 7740 阅读 · 2 评论