Permalink
Browse files

fixed track_urls extraction after change to tag

  • Loading branch information...
mattmurray committed Jan 4, 2019
1 parent 4f29fa5 commit 108b041c2d0154ff0fe76111d85b9ae80d9e257a
Showing with 2 additions and 2 deletions.
  1. +2 −2 juno_crawler/spiders/juno.py
@@ -36,7 +36,7 @@ def parse(self, response):
track_div = release.xpath('.//div[@class="productlist_widget_tracklist_left"]')
for tracks in track_div:
track_urls = tracks.xpath(
'.//div[@class="productlist_widget_tracklist_row"]/a[@ua_action="play"]/@href').extract()
'.//div[@class="productlist_widget_tracklist_row"]/a[@data-ua_action="play"]/@href').extract() # updated
track_name_list = tracks.xpath(
'.//div[@class="productlist_widget_tracklist_row_text"]/span[@class="jq_highlight"]/text()').extract()
track_names = []
@@ -64,4 +64,4 @@ def parse(self, response):

yield item

yield Request(next_page_url)
yield Request(next_page_url)

0 comments on commit 108b041

Please sign in to comment.