Skip to content

Commit

Permalink
Update weixinbase.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 committed Mar 18, 2015
1 parent d430965 commit c9186ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion books/weixinbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class WeixinBook(BaseFeedBook):

def preprocess(self, html):
root = lxml.html.fromstring(html)
cover = root.xpath('//div[@class="rich_media_thumb"]/script')
cover = root.xpath('//*[@id="media"]/script')
coverimg = None
if cover:
pic = re.findall(r'var cover = "(http://.+)";', cover[0].text)
Expand Down

0 comments on commit c9186ee

Please sign in to comment.