simpler implementation of text scraper