摘要: 自由行为例 1.用Google浏览器输入website:touch.qunar.com 2.谷歌浏览器按F12 阅读全文
posted @ 2021-02-18 15:53 山药牛肉 阅读(36) 评论(0) 推荐(0)
摘要: # -*- encoding: utf-8 -*- import requests import pandas as pd import time import pymongo #导入mongodb的库 #建立链接 client = pymongo.MongoClient('localhost',2 阅读全文
posted @ 2021-02-09 15:54 山药牛肉 阅读(207) 评论(0) 推荐(0)
摘要: # -*- encoding: utf-8 -*- import requests import pandas as pd import time import json url='https://cdn.heweather.com/china-city-list.txt' strhtml= req 阅读全文
posted @ 2021-02-07 16:05 山药牛肉 阅读(178) 评论(0) 推荐(0)
摘要: from bs4 import BeautifulSoup import requests import re url='http://www.cntour.cn/' strhtml=requests.get(url) soup= BeautifulSoup(strhtml.text,'lxml') 阅读全文
posted @ 2021-02-04 13:39 山药牛肉 阅读(43) 评论(0) 推荐(0)
摘要: from bs4 import BeautifulSoup import requests url='http://www.cntour.cn/' strhtml=requests.get(url) soup= BeautifulSoup(strhtml.text,'lxml') data= sou 阅读全文
posted @ 2021-02-04 09:55 山药牛肉 阅读(93) 评论(1) 推荐(0)
摘要: 根据https://www.cnblogs.com/Irvingcode/p/12544584.html 有些改进:生成salt的方式不同(ts = str(time.time() * 1000))different:int(time.mktime(date_time_obj.timetuple() 阅读全文
posted @ 2021-02-03 15:22 山药牛肉 阅读(50) 评论(1) 推荐(0)