-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Having an option to define an Items output file in the scrapy parse
commnad line
#4317
Comments
Shall I work on this issue? |
@adityaa30 Please, go ahead, no need to ask for permission 🙂 |
Okay sure! |
Hi, I m working on this issue and made some changes in scrapy/commands/parse.py but running "scrapy parse" in command line not reflecting changes. Any suggestions? |
@Gallaecio how to run scrapy from cloned repository in my local computer? I think "scrapy parse" command running scrapy package installed through "pip install scrapy". |
@akshaysharmajs you should be able to install Scrapy in "development mode" by executing |
@elacuesta Thanks! |
@raphapassini @Gallaecio I have sent a pr #4377. I have made it a work in progress as I have a few questions:
|
@adityaa30 I think it is better to keep the implementation simple, so I personally would not implement 1 or 2 unless people show up asking for it and explaining their use cases. |
@Gallaecio Okay! |
Hey @adityaa30 this is a long waited one, thanks for working on this 💃 |
I use
scrapy parse
command to check the Items output for given URL, and I use it a lot.Sometimes, I need to latter explore the Items extracted by
scrapy parse
, e.g . to check that something I want to fix was fixed for that specific URL without having to touch the source code.Proposed solution:
Add a new parameter
-o
or--output
in the parse command line. Allowing the client to set a desired output file for the items.I could also
|
the result ofscrapy parse
, filter out want I want and create ajson
file out of it, but would be much easier if I could simple writescrapy parse {url} --callback=fixed_function -o items.json
The text was updated successfully, but these errors were encountered: