Giter Club home page Giter Club logo

Comments (8)

IonicaBizau avatar IonicaBizau commented on August 17, 2024

That would be great! โœจ
For the cli module I'd recommend using tilda.

Also, I would say to create a different project for the cli tool (e.g. scrape-it-cli).

Let me know if you have any questions! ๐Ÿ˜„

from scrape-it.

cztomsik avatar cztomsik commented on August 17, 2024

I thought about docopt...
it's based on this original project

The idea is that it takes usage string as DSL of your CLI. So all you have to write is this:

docopt(`
Usage:
  scrape-it <url> [--some-option]
  scrape-it -
  scrape-it -h | --help | --version

Options:
  --config=FILE  Config file [default: ./scrape-it.conf.js]
`)

And all of sudden you get something like this:

{
  url: 'http://...',
  config: './cfg.js',
  some-option: true
}

If you're okay with that I'd be happy to do it (and yeah it can be in its own repo)

from scrape-it.

IonicaBizau avatar IonicaBizau commented on August 17, 2024

@cztomsik Sure, feel free to use whatever you're comfortable with and share a link once it's on GitHub. ๐Ÿš€

I'll be happy to add a link to it. ๐Ÿ˜

from scrape-it.

cztomsik avatar cztomsik commented on August 17, 2024

ok :)

from scrape-it.

cztomsik avatar cztomsik commented on August 17, 2024

Here's the very first version, it's not even published to npm yet, what do you think? Any ideas?

I was thinking about some default config or maybe an init command so people could start quickly?

Something like

npm i -g scrape-it-cli
scrape-it init
scrape-it http://github.com

and instantly get:

{ title: 'How people build software ยท GitHub' }

from scrape-it.

IonicaBizau avatar IonicaBizau commented on August 17, 2024

@cztomsik Cool! ๐Ÿ‘

from scrape-it.

IonicaBizau avatar IonicaBizau commented on August 17, 2024

@cztomsik Hey! Did you do any progress on this? Maybe we can work together for a stable release of scrape-it-cli.

from scrape-it.

cztomsik avatar cztomsik commented on August 17, 2024

Hey, not exactly, basic version worked fine but I've actually found myself in need of something much more powerful (dozens of concurrent crawls backed in one big database) which I am working on and hopefully will open-source soon - I think you might like it and OFC we could join forces then :)

Anyway if you have ideas about scrape-it-cli I can certainly help you a little (or brainstorm) or even transfer the repo to you

from scrape-it.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.