Hi,
I have two problems that's been bugging me. I think they're pretty
easy to solve, but I have had no luck.
a )Deploying project to scrapyd
1. I have managed to start scrapyd on my local machine and I can see
the UI if i visit
http://localhost: 6800
2. In the scrapy.cfg file on my project I have:
[settings]
default = kalender.settings
[deploy:project1]
url =
http://localhost:6800/
project = kalender
3. When I type scrapy deploy -l I get the correct response:
project1
http://localhost:6800/
4. But when I try to deploy with "scrapy deploy scrapyd -p project1" I
get the following error:
Usage
=====
scrapy deploy [options] [ [target] | -l | -L <target> ]
deploy: error: Unknown target: scrapyd
I follow the tutorial here:
http://doc.scrapy.org/en/latest/topics/scrapyd.html
Any ideas whta's going on here?
b) Decoding problems
I'm scraping a swedish site and when I export to json the swedish
signs å,ä, ö is not included properly. In the default settings file I
have changed to the following:
DEFAULT_REQUEST_HEADERS = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8',
'Accept-Language': 'sv',
}
DEFAULT_RESPONSE_ENCODING = 'utf-8'
But this doesn't seem to work. So, how can I get non latin charachters
working properly in the exports?
Any help much appreciated!
/Gustav