放代码片
"utf file header": {
"prefix": "utf",
"body": [
"# -*- coding: utf-8 -*-",
"",
"$0"
],
"description": "utf file header"
},
"get soup": {
"prefix": "gsoup",
"body": [
"res = requests.get(url)",
"res.encoding = 'utf-8'",
"html = res.text",
"page = BeautifulSoup(html, 'lxml')",
"$1"
],
"description": "get BeautifulSoup"
}