Category: DS
Flask – article list
Deployment Deploy Flask on Apache Recipes Larger applications using packages Flask Extensions registry Tutorials – Basic Notes application (CRUD, sqlite, SQLAlchemy) Bucketlist application (mysql) including login Tutorials RESTful JSON API … Read More
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
What version of Python is running ?
Two things to check: 1. Version # In the Python Console: import sys print (sys.version) Sample output: 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19) [GCC 4.2.1 (Apple Inc. build 5666) (dot … Read More