from bs4 import BeautifulSoup
import requests

source = requests.get('https://www.crummy.com/software/BeautifulSoup/bs4/doc/').text

soup = BeautifulSoup(source, 'lxml')

# print(soup)

# related = soup.find('div', class_='related')

for document in soup.find('div', class_='document'):
    # print(document)
   for documentwrapper in document:
       bodywrapper = documentwrapper.div
       print(bodywrapper)