BeautifulSoup4 scrape multiline text data list without tags
import requests from bs4 import BeautifulSoup scrape = requests.get(“http://scedc.caltech.edu/recent/Maps/Los_Angeles.html”) content = scrape.content soup = BeautifulSoup(content, “html.parser”) lineitem=” for details in soup.find(‘pre’).find_next_sibling(‘pre’): lineitem = lineitem + str(details.string.split()) process further as needed … Read More