python字体获取css反爬可以用到【除非字体反爬用到图片识别】

此博客主要围绕Python展开,提及利用其获取CSS字体,可应用于爬取场景,可能还涉及图片识别等信息技术相关内容。
'''
translation_table = {ord('A'): ord('O'),ord('K'): ord('O')} 
print(translation_table )
# { 65 :79 } 
print('MARK'.translate(translation_table) )
# MORO
'''

characters = tuple(ord(c) for c in 'SMEDONRY') 
characters
# (83, 77, 69, 68, 79, 78, 82, 89)
guess = tuple(ord(c) for c in '91570682') 
print(guess)
# (57, 49, 53, 55, 48, 54, 56, 50)
translation_table = dict(zip(characters, guess)) 
print(translation_table)
# {68: 55, 69: 53, 77: 49, 78: 54, 79: 48, 82: 56, 83: 57, 89: 50}
print('SEND + MORE == MONEY'.translate(translation_table) )
# '9567 + 1085 == 10652'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值