摘要: 大众点评实现手机验证码自动登录 1. 获取大众点评的风控参数 _token js 代码 global.document={ userAgent: 'node.js', }; global.window={ userAgent: 'node.js', }; global.screen={ userAg 阅读全文
posted @ 2021-05-28 18:51 不可描述的细节 阅读(1719) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8 import threading import pymongo import redis from bson import ObjectId limit_page = 1000 lock = threading.Lock() class Up: def __init 阅读全文
posted @ 2021-05-24 18:44 不可描述的细节 阅读(184) 评论(0) 推荐(0) 编辑
摘要: mongo 数据量级比较大,find 查找的话可能会存在效率不高的问题 1.使用 异步读取,Python提供了一个可以异步读取mongo 数据的模块 motor 代码如下 import asyncio import hashlib import pymongo from bson import Ob 阅读全文
posted @ 2021-04-23 16:23 不可描述的细节 阅读(561) 评论(0) 推荐(0) 编辑
摘要: RSA公开密钥密码体制。所谓的公开密钥密码体制就是使用不同的加密密钥与解密密钥,是一种“由已知加密密钥推导出解密密钥在计算上是不可行的”密码体制。 前端使用的對密碼的加密方式 获取modules的方式 使用python 对密码加密 password = str(mm).encode("utf8"). 阅读全文
posted @ 2021-01-26 10:51 不可描述的细节 阅读(836) 评论(0) 推荐(0) 编辑
摘要: import re from pyquery import PyQuery as pq import requests from bs4 import BeautifulSoup headers = { 'Cookie': 'did_close_tag=; __mta=53728023.161128 阅读全文
posted @ 2021-01-22 15:51 不可描述的细节 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 马蜂窝数据采集,难点sn 加密 采用固定字符串 加上参数转化md5值截取部分md5 import hashlib import pymongo import pandas import requests import time from pyquery import PyQuery as pq fr 阅读全文
posted @ 2021-01-04 18:06 不可描述的细节 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 大众点评一共有601个加密字体,通用性加密,根据数据的类型更改加密字符,例如,地址加密使用address 的加密字体, 电话使用num 字体加密。 加密字典 {"unif27d": "1", "unie8f9": "2", "unie4a6": "3", "unif22f": "4", "unif5 阅读全文
posted @ 2020-12-28 11:13 不可描述的细节 阅读(966) 评论(0) 推荐(0) 编辑
摘要: import json import requests from gne import GeneralNewsExtractor """ 提取新闻正文模块 gne 安装方式: pip install gne """ url = 'https://mbd.baidu.com/newspage/data 阅读全文
posted @ 2020-11-20 09:42 不可描述的细节 阅读(138) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8 在代码的最上部 指定编码格式 阅读全文
posted @ 2020-10-27 16:07 不可描述的细节 阅读(99) 评论(0) 推荐(0) 编辑
摘要: _id 是mongo 的对象,python从mongo中读出来的数据类型是str 或者object 类 _id 是str类型时存在使用_id 更新数据失败的情况 解决办法 时导入 bson 里面的 ObjectId import pandas as pd import pymongo from bs 阅读全文
posted @ 2020-10-27 15:21 不可描述的细节 阅读(1026) 评论(0) 推荐(0) 编辑