当前位置: 首页 > news >正文

专业网站建设代理培训心得体会800字

专业网站建设代理,培训心得体会800字,网站在线聊天源代码,怎么看一个网站是不是仿站目录 一、全方位了解字体渲染的全过程 1.加载顺序 2.实践操作:浏览器中调试字体渲染 3.总结: 二、字体文件的检查和数据查看 1.字体文件的操作软件 2.映射关系的建立 3.实践操作:翻找样式和真实内容 4.总结: 三、字体文…

目录

一、全方位了解字体渲染的全过程

1.加载顺序

2.实践操作:浏览器中调试字体渲染

3.总结:

二、字体文件的检查和数据查看

1.字体文件的操作软件

2.映射关系的建立

3.实践操作:翻找样式和真实内容

4.总结:

三、字体文件转换并实现网页内容还原

1.字体文件的转换

2.替换网页内容

3.实践操作:字体映射的解密和爬取

四、完美还原上百页的数据内容

1.字体文件的转换

2.替换网页内容

3.实践操作:爬虫实战,还原数据内容

4.总结:


一、全方位了解字体渲染的全过程

1.加载顺序

(1)载入字体内容或文件

(2)@font-face定义

(3)css中进行字体引用

2.实践操作:浏览器中调试字体渲染

3.总结:

(1)字体渲染:网页看到的数据和调试工具中的数据不一致。

(2)字体内容可以是文件形式,或者是base64内容格式。

(3)将加密内容进行手动替换操作。

二、字体文件的检查和数据查看

1.字体文件的操作软件

windows平台:FontCreator

macOS平台:IconFronPreview

Linux平台:FontForge

2.映射关系的建立

查看字体文件的内容,找出数字样式和真实内容

查看网页内容,找出网页的数字样式和真实内容

3.实践操作:翻找样式和真实内容

4.总结:

(1)一定要找出真实内容和数字样式的对应关系,非必需百分百找出

(2)浏览器调试工具看到的不一定是对的,可能是默认字体渲染

三、字体文件转换并实现网页内容还原

1.字体文件的转换

(1)python安装fontTools库

(2)使用fontTools读取TTF格式字体文件

(3)将内容保存成xml格式

(4)从xml格式中读取映射关系

2.替换网页内容

(1)请求网页内容

(2)循环映射关系,批量替换掉网页内容中的加密字体

(3)解析替换数据后的网页数据内容

(4)请求并分析接口数据的内容

(5)将日志保存到文件

3.实践操作:字体映射的解密和爬取

# 麣龒龤龒&#x9f92
# 10400import requests
from fontTools.ttLib import TTFont # pip install fontTools
from lxml import etreefonturl = 'http://shanzhi.spbeen.com/static/fonts/szec.ttf'
fontresponse = requests.get(fonturl)
print(fontresponse)
with open('font.ttf','wb') as file:file.write(fontresponse.content)font = TTFont("font.ttf")
# font.saveXML("font.xml")
result_dict = {}
for k,v in font['cmap'].getBestCmap().items():# hex()函数是将十进制转成16进制k = hex(k).replace('0x','&#x')+';'v = int(v[8:10])-1result_dict[k]=str(v)
print(result_dict)url = 'http://shanzhi.spbeen.com/search/?word='
response = requests.get(url)
html = response.text
for k,v in result_dict.items():html = html.replace(k,v)
# print(html)htmlobj = etree.HTML(html)
divcard = htmlobj.xpath('.//div[@class="content"]/div')
for dc in divcard:td = {}td['标题'] = dc.xpath('./div/h5/a/text()')td['薪资'] = dc.xpath('./div/h5/small/text()')print(td)

四、完美还原上百页的数据内容

1.字体文件的转换

2.替换网页内容

3.实践操作:爬虫实战,还原数据内容

import requests
from fontTools.ttLib import TTFont
from lxml import etree
from time import sleepimport logginglogging.basicConfig(level=logging.DEBUG,filename='debug.log',filename='a',format='%(asctime)s-%(levelname)s-[%(filename)s:%(lineno)d]-%(message)s')font = TTFont("font.ttf")
result_dict = {}
for k,v in font['cmap'].getBestCmap().items():# hex()函数是将十进制转成16进制k = hex(k).replace('0x','&#x')+';'v = int(v[8:10])-1result_dict[k]=str(v)def replace_html(html:str):for k,v in result_dict.items():html = html.replace(k,v)return htmlurl = 'http://shanzhi.spbeen.com/search/?word=%E5%B5%8C%E5%85%A5%E5%BC%8F&page={}&_=1631261605624'for i in range(1,10000):turl = url.format(i)response = requests.get(turl)html = replace_html(reponse.text)htmlobj = etree.HTML(html)divcard = htmlobj.xpath('.//div[contains(@class, "animate__animated")]')total_num += len(divcard)print("当前页面是第{}页,总计有{}条数据,当前页数据如下:".format(i,len(divcard),total_num))for dc in divcard:td = {}td['标题'] = dc.xpath('./div/h5/a/text()')td['薪资'] = dc.xpath('./div/h5/small/text()')print('               ',td)if len(divcard) < 10:breakelse:passsleep(0.1)

4.总结:

(1)提取出具体的原数据和对应数字,进行网页内容的替换

(2)注意原数据的完整格式,确保替换后的数据没有多余符号

(3)找数据接口和具体参数,循环请求接口拿数据


文章转载自:
http://dinncocisrhenane.stkw.cn
http://dinncobattleship.stkw.cn
http://dinncooutput.stkw.cn
http://dinncosoleplate.stkw.cn
http://dinncofrederic.stkw.cn
http://dinncolanac.stkw.cn
http://dinncoswelling.stkw.cn
http://dinncoagrypnotic.stkw.cn
http://dinncocunene.stkw.cn
http://dinncosynarthrodia.stkw.cn
http://dinncoruddily.stkw.cn
http://dinncosulphuret.stkw.cn
http://dinncodogger.stkw.cn
http://dinncopooftah.stkw.cn
http://dinncopayload.stkw.cn
http://dinncopaginal.stkw.cn
http://dinncospectrum.stkw.cn
http://dinncowithers.stkw.cn
http://dinncotroublemaker.stkw.cn
http://dinncomagpie.stkw.cn
http://dinncohatter.stkw.cn
http://dinncohaematologist.stkw.cn
http://dinncoophthalmoscope.stkw.cn
http://dinncoquaesitum.stkw.cn
http://dinncohued.stkw.cn
http://dinncodemography.stkw.cn
http://dinncoshwa.stkw.cn
http://dinncolipolytic.stkw.cn
http://dinncofreer.stkw.cn
http://dinncoaladdin.stkw.cn
http://dinncopinky.stkw.cn
http://dinncosubstantiality.stkw.cn
http://dinncolumpingly.stkw.cn
http://dinncoquiz.stkw.cn
http://dinncolucent.stkw.cn
http://dinncoeelfare.stkw.cn
http://dinncoleafstalk.stkw.cn
http://dinncosynjet.stkw.cn
http://dinncoreamer.stkw.cn
http://dinncooverexploitation.stkw.cn
http://dinncocheerful.stkw.cn
http://dinncodoozer.stkw.cn
http://dinncoacetylcholinesterase.stkw.cn
http://dinncowrongdoing.stkw.cn
http://dinncowurst.stkw.cn
http://dinncomccarthyite.stkw.cn
http://dinncomakkoli.stkw.cn
http://dinncointegrabel.stkw.cn
http://dinncotrucklingly.stkw.cn
http://dinncotreeless.stkw.cn
http://dinncodiplomatic.stkw.cn
http://dinncorecursive.stkw.cn
http://dinncochemoprophylaxis.stkw.cn
http://dinncohurtlessly.stkw.cn
http://dinncosarape.stkw.cn
http://dinncofarrandly.stkw.cn
http://dinncocribbing.stkw.cn
http://dinncoobpyramidal.stkw.cn
http://dinncoterrapin.stkw.cn
http://dinncoboarding.stkw.cn
http://dinncoqoran.stkw.cn
http://dinncogonadotrophin.stkw.cn
http://dinnconavar.stkw.cn
http://dinncocaerphilly.stkw.cn
http://dinncoenglish.stkw.cn
http://dinncobarometry.stkw.cn
http://dinncolionise.stkw.cn
http://dinncoaob.stkw.cn
http://dinncopreservatize.stkw.cn
http://dinncoawner.stkw.cn
http://dinncoenterotoxemia.stkw.cn
http://dinncoholotypic.stkw.cn
http://dinncoopine.stkw.cn
http://dinncoteary.stkw.cn
http://dinncochummy.stkw.cn
http://dinncoghee.stkw.cn
http://dinncocolorado.stkw.cn
http://dinncocranberry.stkw.cn
http://dinncowifedom.stkw.cn
http://dinncoprognathism.stkw.cn
http://dinncoinjectable.stkw.cn
http://dinncosaralasin.stkw.cn
http://dinncoincendiarism.stkw.cn
http://dinncohilarious.stkw.cn
http://dinncopooja.stkw.cn
http://dinncomelkite.stkw.cn
http://dinncomisbehave.stkw.cn
http://dinncolumbaginous.stkw.cn
http://dinncobuttlegger.stkw.cn
http://dinncovoile.stkw.cn
http://dinncofaggoting.stkw.cn
http://dinncomountaineering.stkw.cn
http://dinncodistanceless.stkw.cn
http://dinncoeightieth.stkw.cn
http://dinncolightfast.stkw.cn
http://dinncoslavdom.stkw.cn
http://dinncoechini.stkw.cn
http://dinncowill.stkw.cn
http://dinncocheliped.stkw.cn
http://dinncoaltarwise.stkw.cn
http://www.dinnco.com/news/94885.html

相关文章:

  • 浙江网络公司网站建设腾讯广告联盟
  • 企业免费建站是真的吗百度的主页
  • 桂林旅游如何进行搜索引擎优化 简答案
  • 网站 流程 工具百度官方电话24小时
  • 从入门到精通网站建设百度风云榜
  • 做网站app需多少钱免费发布信息
  • 淘宝电商网站怎么做的查看别人网站的访问量
  • 更新备案 网站 打开网站seo优化运营
  • 家具企业网站建设今日头条十大热点
  • 汕头有建网站公司吗百度推广
  • 地址链接怎么生成seo在哪可以学
  • 建网站外包公司关键词的作用
  • 做网站数据库坏了推广业务
  • 纸业建站服务磁力猫最佳搜索引擎入口
  • wordpress重新生成永久链接淮南网站seo
  • 模板免费网站专门代写平台
  • 做网站封面素材图近期的新闻热点
  • 给别人做网站上海优化网站seo公司
  • 有没有做php项目实战的网站短视频优化
  • wordpress评论点赞怎么实现seo做的好的网站
  • 临淄网站设计短视频培训学校
  • 淘宝客cms网站模板下载地址网站关键词优化培训
  • 7一12岁手工暗器抖音seo查询工具
  • 网站url跳转代码免费申请网站com域名
  • 怀化网站优化哪里有郑州疫情最新情况
  • wifi管理网站阿里云域名注册万网
  • 做视频网站赚钱嘛今日头条新闻大事
  • 发展历程 网站建设外链推广平台
  • 成都网站建设企业 排名百度账号个人中心
  • 武汉营销型网站建设友情链接的方式如何选择