Last active
April 7, 2017 03:31
-
-
Save kingname/56d333e554c3ce312079e027e1dd78f4 to your computer and use it in GitHub Desktop.
[supress scrapy items] To avoid too many data printed at console when yield item in scrapy, override item's __repr__method. tags: Python, Scrapy, Item
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
class XXXItem(Item): | |
name = Field() | |
age = Field() | |
def __repr__(self): | |
return '========data stored===========' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment