title: Python: Search word on a given webpage
body: <p>This is my first program using python for the web.
  I want to count the number of occurrence of a specific (e.i: football), on google and fifa home page. </p>
  
  <p>1) On Google</p>
  
  <pre><code>def wordOnTheWebGoogle():
      import urllib2
      import re    
      page = urllib2.urlopen("http://www.google.com").read()
      print re.findall("football",page)
      print page.find("football") 
  </code></pre>
  
  <p>Output is</p>
  
  <p>[] </p>
  
  <p>-1</p>
  
  <p>2) On Fifa home page</p>
  
  <pre><code>def wordOnTheWebFifa():
      import urllib2
      import re    
      page = urllib2.urlopen("http://www.fifa.com").read()
      print re.findall("football",page)
      print page.find("football")
  </code></pre>
  
  <p>Output is </p>
  
  <pre><code>wordOnTheWebFifa()
  Traceback (most recent call last):
  
    File "&lt;ipython-input-51-4e40573ed4fb&gt;", line 1, in &lt;module&gt;
      wordOnTheWebFifa()
  
    File "D:L12Problem.py", line 21, in wordOnTheWebFifa
      page = urllib2.urlopen("http://www.fifa.com").read()
  
    File "C:\Anaconda\lib\urllib2.py", line 127, in urlopen
      return _opener.open(url, data, timeout)
  
    File "C:\Anaconda\lib\urllib2.py", line 410, in open
      response = meth(req, response)
  
    File "C:\Anaconda\lib\urllib2.py", line 523, in http_response
      'http', request, response, code, msg, hdrs)
  
    File "C:\Anaconda\lib\urllib2.py", line 448, in error
      return self._call_chain(*args)
  
    File "C:\Anaconda\lib\urllib2.py", line 382, in _call_chain
      result = func(*args)
  
    File "C:\Anaconda\lib\urllib2.py", line 531, in http_error_default
      raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  
  HTTPError: Forbidden
  </code></pre>
  
  <p>I thought at least google search would have returned something, but none. 
  Could someone help me to solve both issues? 
  For the Fifa.com, why this forbidden message. </p>
  
  <p>Regards,
  Adjeiinfo</p>