Permalink
Browse files

fixed time scraper

  • Loading branch information...
1 parent f0d0531 commit 8ed76059036019082a2ae7c7abe3a6cf7c60cca9 @dersphere committed Nov 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 resources/lib/scrapers/6_time.py
@@ -28,7 +28,8 @@ def _get_albums(self):
def _get_photos(self, album_url):
self.photos = []
tree = self._get_tree(album_url)
- album_title = tree.find('h1').string
+ entry_top = tree.find('div', {'class': 'entry-top'})
+ album_title = entry_top.find('h1').string or ''
js_code = tree.find('text/javascript', text=re.compile('var images'))
json_photos = re.search('var images = (\[.*?"ID":0.*?\])', js_code).group(1)
photos = json.loads(json_photos)

0 comments on commit 8ed7605

Please sign in to comment.