- 博客(11)
- 收藏
- 关注
原创 模拟有道翻译
# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = '闻名'import execjsimport timeimport randomimport requestsdef get_ts_salt(): ts = int(time.time() * 1000) salt = int(str(ts) +...
2020-06-16 23:33:18
241
原创 b站滑动登陆
# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = ''from selenium import webdriverfrom selenium.webdriver.support.ui import WebDriverWaitfrom selenium.webdriver.support import expected_c...
2020-06-16 23:33:03
979
原创 12306 点触验证
# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = '闻名'from selenium import webdriverfrom selenium.webdriver.support.ui import WebDriverWaitfrom selenium.webdriver.support import expected...
2020-04-07 21:24:12
267
原创 获得美拍视频地址
demo.py# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = '闻名'import requestsimport reimport execjsimport base64session = requests.session()response = session.get(url='https://www.m...
2020-02-12 22:38:00
429
原创 模拟百度翻译
fanyi.py# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = '闻名'import execjsimport reimport requestsdef get_sign(word, gtk): with open('index.js') as f: js_data = f.read()...
2020-02-09 17:59:34
1361
2
原创 模拟登陆微博 主函数中输入自己微博的账号和密码 User-Agent也要改
# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = '闻名'import timeimport base64import requestsimport jsonimport reimport rsaimport binasciiclass Weibo_login(object): def __init...
2020-02-07 17:34:18
506
原创 scrapy 基本使用
方法一:用页面循环去做抛弃start_urls 通过调用自带方法start_Request实现功能# -*- coding: utf-8 -*-import scrapyclass ExampleSpider(scrapy.Spider): name = 'example' # allowed_domains = ['ffffffff'] # start_ur...
2019-10-30 02:25:06
160
原创 requests 代码
# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = 'xxx'import requestsimport reimport jsonr = requests.get('http://wz.sun0769.com/index.php/question/questionType?type=4')r.encoding = ...
2019-10-23 20:45:56
271
原创 socket 代码
# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = 'xxx'import socketimport re'http://image.baidu.com/search/index?tn=baiduimage&word=%E9%AC%BC%E7%81%AD%E4%B9%8B%E5%88%83%E5%A3%81%E7...
2019-10-23 20:44:11
207
原创 抓包 代码
# !user/bin/env python3# -*-coding: utf-8 -*-__author__ = 'xxx'import requestsimport reimport jsondef handle(page): r = requests.get( 'https://careers.tencent.com/tencentcareer/ap...
2019-10-23 20:42:54
2822
1
原创 用Fiddler抓取手机的包
第一步:安装Fiddler4第二步:一些基本的配置左上角 Tools-options第三步:连接网络 注意这里电脑和手机一定要在同一网络下(1)电脑连网这里我连接了一个叫做koukou的网络(2)查看电脑所连的ip地址win+R 输入cmd 然后确认 进入终端在终端输入ipconfig找到这一栏我的IPv4地址为:192.168.43.195 请确认自己电脑的...
2019-10-23 03:45:55
197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人