Added missing curly brace

This commit is contained in:
testingcan 2018-08-23 14:50:49 +02:00 committed by GitHub
parent 4d3aaabbca
commit e98e7f8506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ also request each page to get every quote on the site::
def parse(self, response):
data = json.loads(response.text)
for quote in data["quotes"]:
yield {"quote": quote["text"]
yield {"quote": quote["text"]}
if data["has_next"]:
self.page += 1
url = "http://quotes.toscrape.com/api/quotes?page={}".format(self.page)