Coder Social home page Coder Social logo

growler's Introduction

growler

A cli web browser/crawler written in Go

Getting Started

These instructions will get you a copy of the project up and running on your local machine for various purposes.

Prerequisites

In order to be able to install and run the application you will need the following programs in your machine.

go version >= go1.12.1

Installing

You can install the app by running the following command in the root folder of the project.

go install -v .
# OR
make install

Running

Considering you installed the app by running the previous step

#The following command will launch the app regularly
growler

#The next command will run the app with extra logging capabilities
growler debug

Or in the following way

#This command builds the app into the build/ directory
make build
#OR
go build

#This one executes it
./build/growler

To verify the extra logging capabilities, the log's output is being done to the info.log file.

#checking the log
cat info.log

#getting the last 10 lines
tail info.log

#checking for a certain error/output
cat info.log | grep -i 'tab-1-start'

Testing

Writing the command help will print out a more detailed explanation of how commands work.

[GRWLR] > help

 	 Command usage help

get <url> 					 - Opens a new tab and gives it the job of requesting the given url.

list 						 - Lists all open tabs, their current or last job, and their current status.

read <image_filename> 				 - Reads an image and tries to decode it into a txt with RGB values.

download <url_to_download> <output_filename> 	 - Requests the URL and saves the response or downloadable file to the output file.

stop <tab id> 					 - Stops the thread represented by the input id.
							 If a thread is working it will wait until it has finished to stop it.

job <url> 					 - Adds the given url to the pool of jobs, it will be executed once a tab is available.

exit 						 - Stops all tabs and exits the browser.


Built With

  • golang - The programming language

growler's People

Contributors

hoakbuilds avatar

Watchers

James Cloos avatar  avatar

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.