title: Extract CSS media queries from websites with python 2.7
body: <p>I'm trying to find a specific CSS media query (<code>@media only screen</code>) in <strong>CSS files</strong> of websites by using a crawler in python 2.7.</p>
  
  <p>Right now I can crawl websites/URLs (from a CSV file) to find specific keywords in their <strong>HTML source code</strong> using the following code:</p>
  
  <pre><code>import urllib2
  
  keyword = ['keyword to find']
  
  with open('listofURLs.csv') as f:
      for line in f:
          strdomain = line.strip()
          if strdomain:
              req = urllib2.Request(strdomain.strip())
              response = urllib2.urlopen(req)
              html_content = response.read()
  
              for searchstring in keyword:
                  if searchstring.lower() in str(html_content).lower():
                      print (strdomain, keyword, 'found')
  f.close()
  </code></pre>
  
  <p>However, I now would like to crawl websites/ULRs (from the CSV file) to find the <code>@media only screen</code> query in their CSS files/source code. How should my code look like? </p>