Created
March 16, 2019 23:06
-
-
Save dogweather/aa226fd799686aad096874108b3fbacf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pull the category back out of the meta dict. | |
parent_category = response.meta["category"] | |
# Create a new items.Brand with the scraped data. | |
# ... | |
# Add the new brand to its parent in the tree. | |
parent_category["brands"].append(brand) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment