I am using node-osmosis for web scraping working fine with me, but have an issue modifying the URL to follow while scraping, I tried the rewrite function but it is not working,
osmosis
.follow(...).rewrite(function(url) {
// return modified url string
})