Home > other > About scrapy single crawler item more and more in the Pipeline, the chaos in the yield of the wrong
About scrapy single crawler item more and more in the Pipeline, the chaos in the yield of the wrong
Time:09-24
In the setting of the two pipes, and set the priority Returned to the two yield in the main program, a return to the text, a return to the image URL In the item file defines two item classes, and instantiation, respectively, in the main program to save the item Problems occurred during pipeline: 1. The two item will perform in the pipeline, despite the if category judgement, this is not the key 2. Two yield in return, only the high priority can obtain the yield data, it is the key 3. Why the yield, the lower priority for less than the yield data, even if the tube into the right cannot obtain data Def process_item (self, item, spiders) : Print (" form pipeline has entered... ", item) # form pipeline has entered... None 4. Another yield tube into image can obtain the item data Of new, give directions! Genuflect is begged!!!!!