from bs4 import BeautifulSoup
import requests
url = 'http://caselaw.findlaw.com/mo-court-of-appeals/1021163.html'
soup = BeautifulSoup(requests.get(url).text, 'html.parser')
I added much more reliable .find method (value : )
whole_section = soup.find('div',{'class':'caselawcontent searchable-content'})
the_title = whole_section.center.h2
second_title = whole_section.center.h3.p
number_text = whole_section.center.h3.next_sibling.next_sibling
the_date = number_text.next_sibling.next_sibling
authors = whole_section.center.next_sibling
para = whole_section.findAll('p')[1:]
, (, , var para), loop
print(authors)
def rettext(something):
return something.text