Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arguments are urlencoded when passed to the spider #77

Closed
barraponto opened this issue Jan 14, 2015 · 3 comments
Closed

Arguments are urlencoded when passed to the spider #77

barraponto opened this issue Jan 14, 2015 · 3 comments

Comments

@barraponto
Copy link

@barraponto barraponto commented Jan 14, 2015

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
Copy link
Contributor

@jayzeng jayzeng commented Jan 15, 2015

@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
Copy link
Member

@Digenis Digenis commented Mar 15, 2016

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

@barraponto
Copy link
Author

@barraponto barraponto commented Jun 13, 2016

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

@barraponto barraponto closed this Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.