摘要:
大众点评实现手机验证码自动登录 1. 获取大众点评的风控参数 _token js 代码 global.document={ userAgent: 'node.js', }; global.window={ userAgent: 'node.js', }; global.screen={ userAg 阅读全文
摘要:
# encoding:utf-8 import threading import pymongo import redis from bson import ObjectId limit_page = 1000 lock = threading.Lock() class Up: def __init 阅读全文
摘要:
mongo 数据量级比较大,find 查找的话可能会存在效率不高的问题 1.使用 异步读取,Python提供了一个可以异步读取mongo 数据的模块 motor 代码如下 import asyncio import hashlib import pymongo from bson import Ob 阅读全文
摘要:
RSA公开密钥密码体制。所谓的公开密钥密码体制就是使用不同的加密密钥与解密密钥,是一种“由已知加密密钥推导出解密密钥在计算上是不可行的”密码体制。 前端使用的對密碼的加密方式 获取modules的方式 使用python 对密码加密 password = str(mm).encode("utf8"). 阅读全文
摘要:
import re from pyquery import PyQuery as pq import requests from bs4 import BeautifulSoup headers = { 'Cookie': 'did_close_tag=; __mta=53728023.161128 阅读全文
摘要:
马蜂窝数据采集,难点sn 加密 采用固定字符串 加上参数转化md5值截取部分md5 import hashlib import pymongo import pandas import requests import time from pyquery import PyQuery as pq fr 阅读全文
摘要:
大众点评一共有601个加密字体,通用性加密,根据数据的类型更改加密字符,例如,地址加密使用address 的加密字体, 电话使用num 字体加密。 加密字典 {"unif27d": "1", "unie8f9": "2", "unie4a6": "3", "unif22f": "4", "unif5 阅读全文
摘要:
import json import requests from gne import GeneralNewsExtractor """ 提取新闻正文模块 gne 安装方式: pip install gne """ url = 'https://mbd.baidu.com/newspage/data 阅读全文