title: How to use Beautiful Soup find all to scrape only a list that is a part of the body
body: <p>I am having trouble scraping this wikipedia list with the neighborhoods of Los Angeles using beautiful soup. I am getting all the content of the body and not just the neighborhood list like I would like to. I saw a lot about how to scrape a table but I got stucked in how to apply the table logic in this case.
  This is the code I have been using: </p>
  
  <pre><code>import BeautifulSoup
  
  address = 'Los Angeles, United States'
  
  url = "https://en.wikipedia.org/wiki/List_of_districts_and_neighborhoods_of_Los_Angeles"
  
  source = requests.get(url).text
  
  soup = BeautifulSoup(source,'lxml')
  
  neighborhoodList = []
  
  -- append the data into the list
  
  for row in soup.find_all("div", class_="mw-body")[0].findAll("li"):
  
     neighborhoodList.append(row.text.replace(', LA',''))
  
  df_neighborhood = pd.DataFrame({"Neighborhood": neighborhoodList})
  </code></pre>