im trying to get proxies using regex python out of a web page
Question: 
    import urllib.request
    import re
    page = urllib.request.urlopen("http://www.samair.ru/proxy/ip-address-01.htm").read()
    re.findall('\d+\.\d+\.\d+\.\d+', page)
    

i dont understand why it says:

File "C:\Python33\lib\re.py", line 201, in findall return _compile(pattern,
flags).findall(string) TypeError: can't use a string pattern on a bytes-like
object


Answer: 
    import urllib
    import re
    page = urllib.urlopen("http://www.samair.ru/proxy/ip-address-01.htm").read()
    print re.findall('\d+\.\d+\.\d+\.\d+', page)
    

Worked and gave me the result:

    
    
    ['056.249.66.50', '100.44.124.8', '103.31.250.115', ...
    

**Edit**

  * This works for python2.7

