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

CLI Mode #1

Closed
josephlewis42 opened this issue Jan 1, 2020 · 3 comments
Closed

CLI Mode #1

josephlewis42 opened this issue Jan 1, 2020 · 3 comments
Labels

Comments

@josephlewis42
Copy link

It would be really nifty to be able to run this from the CLI as a command and have it write the JSON to stdout so it could be used as part of a larger tool. For example:

scraply --execute /my-macro
@alash3al
Copy link
Owner

alash3al commented Jan 1, 2020

It is a good idea, but what kind of use cases for this feature?

@josephlewis42
Copy link
Author

I would imagine this being useful when looking to crawl for things other than HTML documents or using in shell scripts. For example, you could use Scraply to build up a JSON object describing your data on an image hosting website, and then pass that to another command that would download all your images. In that case you'd want to run the script as part of a larger process (or manually as a script) and may not want to worry about binding to a port, making sure the server terminates, and securing the endpoint.

This is a really cool tool!

@alash3al alash3al added the todo label Jan 1, 2020
@alash3al
Copy link
Owner

alash3al commented Jul 6, 2022

@josephlewis42

I know that it is ~two years since you posted your suggestion, but I wanted to let you know that scraply now is just a simple CSS selectors scraper with a very simple cli interface.

@alash3al alash3al closed this as completed Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants