Pyspider +mongodb how do multiple crawlers result specify the collection name

  mongodb, question

For example, I now need to crawl the contents of several websites, but the result structure is the same. The current configuration resultdb is a db, and the results of each crawler are different sets. And I want to save these results to the specified set under the specified db. How to set this? Please help me answer this question.

The self-contained resultdb is only used to show preview results. If you change the structure, this function will be invalid. So you need to build your own database and handle how to store the results after you get them.