aivarsk / scrapy-proxies

Random proxy middleware for Scrapy
MIT License
1.66k stars 409 forks source link

Fix for TypeError during base64 encode in Python 3. #18

Closed cbrz closed 8 years ago

cbrz commented 8 years ago

Changed base64.encodestring() to use base64.b64encode for Python 3 support. Was receiving a TypeError previously. You can read about it here on stackoverflow here: http://stackoverflow.com/questions/31144988/base64-encodestring-failing-in-python-3

I noticed it was also fixed kangoo13 in #16, but got lost.

aivarsk commented 8 years ago

Thanks!