获取网页中的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
posted @ 2020-08-19 19:32
Powered by:
博客园
Copyright © 2025 BillBie
Powered by .NET 9.0 on Kubernetes