You can modify the item in the callback function of the current request before passing it to the next request. You can also use Scrapy's built-in item pipeline to modify the item after it has been scraped and before it is stored.