Code Monkey home page Code Monkey logo

chupa-cabra's Introduction

Build Status

chupa-cabra

Javascript tool built in NodeJS to automatically get body's content from HTTP/HTTPS request and concatenate to a file.

Installing

npm install -g chupa-cabra 

How to use

Just run the chupa-cabra and when it asks for the URL you can:

1) Use an interval notation
https://www.google.com.br/search?q=test&start=[0,100,10]

It means from 0 to 100 incremented by 10. All the 10 pages will be dumped into a text file, in this case, as HTML.

http://api.example.com/resource?page=[0,1000,100]

In this case from 0 to 1000 incremented by 100. The JSON result will be appended into a txt file.

2) Or single URL
https://www.google.com

Gets the HTML content for just this page.

Todo: Check the issues!

chupa-cabra's People

Contributors

annacruz avatar haskellcamargo avatar lucascaprio avatar raphaklaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chupa-cabra's Issues

Multiple loops

Today only one loop is allowed per URL.

Extend the loop routine to work with more than one using an order notation.

Not working well in macos

I'm trying to run in a macos and receiving tha message env: node\r: No such file or directory
When run directly in node_modules folder with node chupa-cabra.js it works fine =)

Ps: I'm also using nvm.

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.