分享一个有意思的滑块。
网址:https://xxgs.chinanpo.mca.gov.cn/gsxt/newList
图片好看,不知道说啥了,验证部分。
ok,源码在这,自提。
# -*- coding:utf-8 -*-
# author: qinshaowen
# V:15702312233
import requests,base64
import execjs,ddddocr
from loguru import logger
from Crypto.Cipher import PKCS1_v1_5 as Cipher_pksc1_v1_5
from Crypto.PublicKey import RSA
def encrpt(password, public_key):
rsakey = RSA.importKey(public_key)
cipher = Cipher_pksc1_v1_5.new(rsakey)
cipher_text = base64.b64encode(cipher.encrypt(password.encode()))
return cipher_text.decode()
jscode='''
encodedata=function(t) {
A =