![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码
fs_eagle
这个作者很懒,什么都没留下…
展开
-
京东优惠券获取、分析
import requestsfrom bs4 import BeautifulSoupquanxx = []quan = []quannr = []for k in range(32):#获取多少页优惠券 print('正在获取第'+str(k+1)+'页优惠券信息') url = 'http://a.jd.com/coupons.html?ct=4&pag...原创 2018-02-27 13:45:16 · 7040 阅读 · 1 评论 -
requests和urllib.request实现对比
import requestsimport urllib.request#requestsreq = requests.get('http://www.xiami.com/search?key=%E5%9B%9B%E5%A4%A7',headers={ 'Connection': 'Keep-Alive', 'Accept': 'text/h...原创 2018-02-27 13:49:40 · 8457 阅读 · 1 评论 -
session模拟登陆人人网
import requestss = requests.session()data = {'email':'15313699921','password':'688b1aa21bed9edb07f5984e6452cc3e06c77c11614aa3ba2bb3977fb398b914'}postData = { 'email': 'xxxxxxxx', 'icode': ...原创 2018-02-27 13:53:32 · 465 阅读 · 0 评论 -
tqmd实现进度条
import osfrom urllib.request import urlopenimport requestsfrom tqdm import tqdmdef download_from_url(url, dst): file_size = int(urlopen(url).info().get('Content-Length', -1)) if os.path...原创 2018-02-27 13:53:12 · 1031 阅读 · 0 评论 -
urllib模拟登陆人人网
import urllibimport http.cookiejarposturl = 'http://www.renren.com/PLogin.do'headers = { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0', 'Referer': '...原创 2018-02-27 13:55:40 · 259 阅读 · 0 评论 -
远程访问斐讯天天链N1(python源码)写的不好 仅仅为了实现功能
from smb.SMBConnection import SMBConnectionfrom tkinter import *import tkinter.filedialog as filedialogclass ConnectSamba(): def __init__(self): #self.username = 'root' #se...原创 2018-04-12 15:30:44 · 2057 阅读 · 0 评论