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

Comments

Projects
None yet
3 participants
@barraponto

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

This comment has been minimized.

Show comment
Hide comment
@jayzeng

jayzeng Jan 15, 2015

Member

@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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@Digenis

Digenis Mar 15, 2016

Collaborator

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

Collaborator

Digenis commented Mar 15, 2016

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

@barraponto

This comment has been minimized.

Show comment
Hide comment
@barraponto

barraponto Jun 13, 2016

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

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