use beautiful soup to extract code/noncode, lowercase text