code to web scraping and nmf