Python Functions for Web Scraping and Content Analysis