I am doing some web scraping stuff with python. But as you know some web pages has different charsets. I need to get those web pages charset. So 开发者_开发知识库long story short, for lxml, What is xpath pattern?
Thank you.
This:
/html/head/meta[@http-equiv='Content-Type']/@content
HTML5:
/html/head/meta/@charset
精彩评论