(self,url,json,headers={},cookies={})
| 58 | rsp.encoding='utf-8' |
| 59 | return rsp |
| 60 | def postJson(self,url,json,headers={},cookies={}): |
| 61 | rsp = requests.post(url,json=json,headers=headers,cookies=cookies) |
| 62 | rsp.encoding='utf-8' |
| 63 | return rsp |
| 64 | def html(self,content): |
| 65 | return etree.HTML(content) |
| 66 | def xpText(self,root,expr): |