Return value of function returning in scrapy - Stack Overflow
漂亮男人
漂亮男人 2017-05-18 10:51:55
0
2
594

As shown in the figure:
I called parse_voucher in the function yield function to obtain the corresponding value, and then returned the data obtained using parse_voucher in the parse_store function. How should I deal with this method? Please give me some advice..Thank you

漂亮男人
漂亮男人

reply all (2)
滿天的星座

You just need to process it step by step. Add the operation afterparse_voucher中再用yield传递给下一个函数处理,这个就相当于你在parse_storeyield


Give me a suggestion, don’t post pictures when asking questions in the future. When you post pictures, have you considered the feelings of the person who answers the question? If you do this, they will still have to type the code sentence by sentence!

    漂亮男人

    Add meta={} directly in the request, fill in the data you want to pass, it is a dictionary type, accept response.meta[]

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!