scrapy / scrapyd

A service daemon to run Scrapy spiders
https://scrapyd.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
2.97k stars 569 forks source link

Arguments are urlencoded when passed to the spider #77

Closed barraponto closed 8 years ago

barraponto commented 9 years ago

I was naively getting an argument from the command line and it was ok, but when I moved the project to scrapyd I noticed the arguments were being urlencoded when sent by python-requests. I needed to use urlparse.unquote to get the normalized argument.

jayzeng commented 9 years ago

@barraponto I am sure if I follow. What you described sounds reasonable to me, scrapyd runs over http and should be url encoded, if you rely on the output from scrapyd to trigger your own code, then you should unquote the results. Correct me if I am wrong, seems like I am missing something here.

Digenis commented 8 years ago

@barraponto, can you share an example, including code?

barraponto commented 8 years ago

Sorry, it's been a while. If I ever run into this again I'll reopen.