Migrate 'Crawler' sample to the new API.