Skip to content

Commit

Permalink
更换RSS订阅地址
Browse files Browse the repository at this point in the history
之前的RSS地址更新速度太慢了
  • Loading branch information
WangShanpeng committed May 31, 2016
1 parent ceb0f8a commit bb55c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions books/Dapenti.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class Dapenti(BaseFeedBook):
network_timeout = 60
fetch_img_via_ssl = False
feeds = [
(u'喷嚏图卦', 'http://www.pentitugua.com/rss.xml', True),
(u'喷嚏图卦', 'http://tugua.daoapp.io/rss.xml', True),
]

def soupbeforeimage(self, soup):
#更换另一个图库,因为RSS中的图库已经被封
for img in soup.find_all('img', attrs={'src':True}):
if img['src'].startswith('http://ptimg.org:88'):
img['src'] = img['src'].replace('http://ptimg.org:88','http://pic.yupoo.com')


0 comments on commit bb55c12

Please sign in to comment.