BillBie

导航

随笔分类 -  爬虫

获取网页中的charset
摘要:m = re.compile('<meta .*(http-equiv="?Content-Type"?.*)?charset="?([a-zA-Z0-9_-]+)"?', re.I).search(response_text) if m and m.lastindex == 2: charset 阅读全文

posted @ 2020-08-19 19:32 BillBie 阅读(12) 评论(0) 推荐(0)