I am crawling a particular url from google.com but i get some error
'utf8' codec can't decode byte 0xc3 in position 72: invalid continuation byte Code:
import re import os import MySQLdb import codecs import requests import base64 import random import gzip import time from multiprocessing.pool import Pool import datetime import time import sys reload(sys) sys.setdefaultencoding('utf-8') def proxy_mesh(): while True: try: data = requests.get('google.com') print data.text.encode('utf-8') except Exception, e: print e print "Trying again" time.sleep(3) proxy_mesh() What is the FIX and how to over come this error?
utf-8while the encoding was done differently.