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

[FeatureRequest] Adding the command line interface. #196

Open
starrify opened this issue Jun 29, 2020 · 2 comments
Open

[FeatureRequest] Adding the command line interface. #196

starrify opened this issue Jun 29, 2020 · 2 comments

Comments

@starrify
Copy link
Contributor

It would be helpful if there may be a command-line interface added for parsel, as existing tools (e.g. W3's html-xml-tools and pup in Golang) are not handy enough.

Expected usage example:

$ curl -s https://scrapy.org/ | parsel --css "div#scrapy-logo + p::text"
An open source and collaborative framework for extracting the data you need from websites.
$ curl -s https://scrapy.org/ | parsel --all --output-json --css "div#scrapy-logo ~ * ::text"
["An open source and collaborative framework for extracting the data you need from websites.", "In a fast, simple, yet extensible way.", "Maintained by", "Scrapinghub", "and", "many other contributors"]
@eliasdorneles
Copy link
Member

FYI, there are already two CLI implementations:

@Gallaecio
Copy link
Member

And they are covered in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants