I'm using Scrapy join with Python2.7 for do some tasks but I am deal with a issue with the Spanish characters like accents and ñ. The problem is when I did a respone like:
response.xpath("//*[contains(@id, 'content')]").css('table').css('tr').css('a')
And returns, for example, the following line:
u'<a href="/C\xf3digo/7">/C\xf3digo/7</a>'
I need the content of href for go to the next page but the format is incorrect and Scrapy cannot do a request.
I included the # -- coding: utf-8 -- at the beginning of the file and I tried to use .decode('utf-8') but it didn't work. Someone had have this problem and knowns how to solve it? I will really grateful with your help.
Regards.