A look at Dataset and easy and Pythonic way to create a database.
Other candidates in this categorie,i will mention pyDAL and Peewee.
I did some test of Dataset in this post to look at.
So here a common task some web-scraping of food recipes(just a task i did help someone with).
A task you may not use a database for(to much work).
So let see how Dataset will work for this task.
Requirement Requests and BeautifulSoup.
First clean code without Dataset.
import requests
from bs4 import BeautifulSoup
start_page = 1
end_page = 3
for page in range(start_page, end_page+1):
url = 'http://www.taste.com.au/search-recipes/?q=&%3Btag[]=13&%3Btag[]=28&%3B=&sort=title&order=asc&page={}'.format(page)
url_page = requests.get(url)
soup = BeautifulSoup(url_page.text)
tag_div = soup.find_all('div', {'class': "content-item tab-content current"})[0]\
.find_all('div', {'class': 'story-block'})
print('--- Page {} ---'.format(page))
for content in tag_div:
print(url_page.status_code, content.find('a')['href'])
In code snippet i bring in Dataset,and take out some data.