title: skipping the complete row if len() of column is lower than 10 in python
body: <p>I'm trying to apply an if statement in my django view script that would skip the complete row of the product if the description lenght is less than 10, but I don't know how to achieve this..</p>
  
  <p>This is my Django view that calls an API and save the data into my database and as you will see in the commented section this is what I came out with so far:</p>
  
  <pre><code>def api_data(request):
      if request.GET.get('mybtn'):  # to improve, == 'something':
          resp_1 = requests.get(
              "https://www.headout.com/api/public/v1/product/listing/list-by/city?language=fr&amp;cityCode=PARIS&amp;limit=5000&amp;currencyCode=CAD",
              headers={
                  "Headout-Auth": HEADOUT_PRODUCTION_API_KEY
              })
          resp_1_data = resp_1.json()
          base_url_2 = "https://www.headout.com/api/public/v1/product/get/"
  
          translator = Translator()
  
          for item in resp_1_data['items']:
              print('parsing, translating and saving item {}'.format(item['id']))
              # concat ID to the URL string
              url = '{}{}'.format(base_url_2, item['id'] + '?language=fr')
  
              # make the HTTP request
              resp_2 = requests.get(
                  url,
                  headers={
                      "Headout-Auth": HEADOUT_PRODUCTION_API_KEY
                  })
              resp_2_data = resp_2.json()
  
  
              descriptiontxt = resp_2_data['contentListHtml'][0]['html'][0:2040] + ' ...'
  
              soup = BeautifulSoup(descriptiontxt, 'lxml')
              parsed = soup.find('p').text
  
  
              #what I tried so far
  
              #if len(parsed) &lt; 10:
              #   skip the complete row and go to the next one
  
  
              translation = translator.translate(parsed, dest='fr')
  
              titlename = item['name']
              titlefr = translator.translate(titlename, dest='fr')
  
              destinationname = item['city']['name']
              destinationfr = translator.translate(destinationname, dest='fr')
  
              Product.objects.get_or_create(
                  title=titlefr.text,
                  destination=destinationfr.text,
                  description=translation.text,
                  link=item['canonicalUrl'],
                  image=item['image']['url']
              )
  
              time.sleep(2)
  
      return render(request, "form.html")
  </code></pre>
  
  <p>Please help.</p>