If they are two independent target websites, it will be more flexible to write them separately. If it is the same website, assuming you have two items respectively: item, item, there are many URLs to crawl. These URLs can be obtained through the parsing of both items. After you obtain the URL, you can make a new request. That's it.
If a and b are independent, divide them into two spiders. One spider can use multiple items, if necessary.
If they are two independent target websites, it will be more flexible to write them separately.
If it is the same website, assuming you have two items respectively: item, item, there are many URLs to crawl. These URLs can be obtained through the parsing of both items. After you obtain the URL, you can make a new request. That's it.