added post route to server and wrapped the scrape in a function to export