title: ValueError: unknown url type: 'url'
body: <pre><code>import urllib.request
  import urllib.parse
  import re           #regular equatuions
  
  url = 'http://pythonprogramming.net/'
  values = {'s': 'basics',
        'submit':'search'}        #this is how you search on most websites
  data = urllib.parse.urlencode(values)
  data= data.encode('utf-8')
  req = urllib.request.Request('url', 'data')
  resp = urllib.request.urlopen(req)
  respData = resp.read()
  
  #print(respData)
  
  paragraphs = re.findall(r'&lt;p&gt;(.*?)&lt;/p&gt;', str(respData))                     
  for eachP in paragraphs:
      print(eachP)
  </code></pre>
  
  <p>This code was from a video I followed along with. I dont understand why it does not work since its copied. I tried to understand the error but they did make any sense. The url works and it a real website. Here are the error messages I received: </p>
  
  <pre><code>C:\Python34\python.exe "C:/Users/S/PycharmProjects/untitled/Parsing practice.py"
  Traceback (most recent call last):
    File "C:/Users/Sean/PycharmProjects/untitled/Parsing practice.py", line 10, in &lt;module&gt;
      req = urllib.request.Request('url', 'data')
    File "C:\Python34\lib\urllib\request.py", line 266, in __init__
      self.full_url = url
    File "C:\Python34\lib\urllib\request.py", line 292, in full_url
      self._parse()
    File "C:\Python34\lib\urllib\request.py", line 321, in _parse
      raise ValueError("unknown url type: %r" % self.full_url)
  ValueError: unknown url type: 'url'
  </code></pre>
  
  <p>I don't really know what these mean since I don't have 200 lines of code, just 19.</p>