title: .content in Python
body: <p>I am new to Python development and Python requests.</p>
  
  <p>I have this code:</p>
  
  <pre><code>import requests
  from pattern import web
  import re
  import pandas as pd
  
  
  def list_of_prices(url):
      html = requests.get(url).text
      dom = web.DOM(html)
      list = []
      for person in dom('.freelancer-list-item .medium.price-tag'):
          currency = person('sup')
          amount = person('span')
          list.append([currency[0].content if currency else 'na', 
                       amount[0].content if amount else 'na'])
      return list
  
  list_of_prices('http://www.peopleperhour.com/freelance/data+analyst#page=2')
  </code></pre>
  
  <p>When I run this code i get an error like <code>module pattern not found</code>, but that's not what I'm asking for help with.</p>
  
  <p>Where does <code>.content</code> come from? Is it used only with Python requests?</p>