Skip to content

Commit

Permalink
Merge pull request #1480 from StationA/master
Browse files Browse the repository at this point in the history
Fix bug in Wal-mart spider
  • Loading branch information
iandees committed May 13, 2020
2 parents 2bc9c76 + 9e0ffaa commit 723d6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locations/spiders/walmart.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def parse(self, response):
yield scrapy.Request(u.strip(), callback=self.parse_store)

def parse_store(self, response):
script = response.xpath("//script[contains(.,'WML_REDUX_INITIAL_STATE')]").extract_first()
script = response.xpath("//script[contains(.,'__WML_REDUX_INITIAL_STATE__ = ')]").extract_first()
# In rare cases will hit page before script tag loads with content
if script is None:
if self.retries.get(response.url, 0) <= 2:
Expand Down

0 comments on commit 723d6e3

Please sign in to comment.