diff --git a/WebCrawler/javbus.py b/WebCrawler/javbus.py index a8aa93c..d89c9dc 100644 --- a/WebCrawler/javbus.py +++ b/WebCrawler/javbus.py @@ -48,7 +48,7 @@ def getCover(htmlcode): #获取封面链接 doc = pq(htmlcode) image = doc('a.bigImage') uri = image.attr('href') - if uri[0:4] == 'http': + if uri.startswith('http'): return uri if uri[0] != '/': uri = '/' + uri