def fetcharticle(self, url, opener, decoder): m = re.search(r'/(\d{8})/(\d{8,})', url) if m: pubdate=m.group(1) artnum=m.group(2) url = 'http://news.donga.com/View?gid=' + artnum +'&date=' + pubdate return BaseFeedBook.fetcharticle(self,url,opener,decoder)
def fetcharticle(self, url, opener, decoder): #每个URL都增加一个后缀full=y,如果有分页则自动获取全部分页 url += '?full=y' return BaseFeedBook.fetcharticle(self,url,opener,decoder)
def fetcharticle(self, url, opener, decoder): return BaseFeedBook.fetcharticle(self,url,opener,decoder)
def fetcharticle(self, url, opener, decoder): #链接网页获取一篇文章 return BaseFeedBook.fetcharticle(self, self.url4forwarder(url), opener, decoder)
def fetcharticle(self, url, decoder): #每个URL都增加一个后缀full=y,如果有分页则自动获取全部分页 url += '/print' return BaseFeedBook.fetcharticle(self,url,decoder)
def fetcharticle(self, url, opener, decoder): #链接网页获取一篇文章 return BaseFeedBook.fetcharticle(self, self.url4forwarder(url), opener, decoder)