How to get text of children tag's description using beautiful soup
<p>I am using beautiful soup to scrap some data from 
<a href="http://www.foodily.com/r/0y1ygzt3zf-perfect-vanilla-cupcakes-by-annie-s" rel="nofollow">foodily.com</a></p>

<p>On above page there is a div with class 'ings' and I want to get data within its p tags for that I have written below code:</p>

<pre><code>ingredients = soup.find('div', {"class": "ings"}).findChildren('p')
</code></pre>

<p>It provide me list of ingredient but with p tags</p>

<p>Call <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/#get-text" rel="nofollow"><code>get_text()</code></a> for every <code>p</code> element found inside the <code>div</code> element with <code>class="ings"</code>.</p>

<p>Complete working code:</p>

<pre><code>from bs4 import BeautifulSoup
import requests

with requests.Session() as session:
    session.headers.update({"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"})
    response = session.get("http://www.foodily.com/r/0y1ygzt3zf-perfect-vanilla-cupcakes-by-annie-s")

    soup = BeautifulSoup(response.content, "html.parser")

    ingredients = [ingredient.get_text() for ingredient in soup.select('div.ings p')]
    print(ingredients)
</code></pre>

<p>Prints:</p>

<pre><code>[
    u'For the cupcakes:', 
    u'1 stick (113g) butter/marg*', 
    u'1 cup caster sugar', u'2 eggs', 
    ...
    u'1 tbsp vanilla extract', 
    u'2-3tbsp milk', 
    u'Sprinkles to decorate, optional'
]
</code></pre>

<p>Note that I've also improved your locator a bit and switched to a <code>div.ings p</code> <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/#css-selectors" rel="nofollow">CSS selector</a>.</p>

python beautifulsoup