In [1]:
import requests
url_base = 'http://philadelphia.craigslist.org/search/apa'
params = {'bedrooms': 1}
rsp = requests.get(url_base, params=params)
from bs4 import BeautifulSoup
Clists = BeautifulSoup(rsp.content, 'html.parser')
SResults = Clists.select("#search-results li")
first_element = SResults[0]
print(first_element.prettify())