diff --git a/scrapinglib/getchu.py b/scrapinglib/getchu.py index 5c1649d..550b8d0 100644 --- a/scrapinglib/getchu.py +++ b/scrapinglib/getchu.py @@ -3,6 +3,8 @@ import re import json from urllib.parse import quote + +from scrapinglib import httprequest from .parser import Parser @@ -64,6 +66,18 @@ class wwwGetchu(Parser): return None return detailurl.replace('../', 'http://www.getchu.com/') + def getHtml(self, url, type = None): + """ 访问网页(指定EUC-JP) + """ + resp = httprequest.get(url, cookies=self.cookies, proxies=self.proxies, extra_headers=self.extraheader, encoding='euc-jp', verify=self.verify, return_type=type) + if '