Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoakbuilds/growler
a Golang crawler
https://github.com/hoakbuilds/growler
Last synced: 11 days ago
JSON representation
a Golang crawler
- Host: GitHub
- URL: https://github.com/hoakbuilds/growler
- Owner: hoakbuilds
- Created: 2019-03-27T22:06:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-09T18:03:16.000Z (over 4 years ago)
- Last Synced: 2024-04-18T04:17:16.003Z (7 months ago)
- Language: Go
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# growler
A cli web browser/crawler written in Go
## Getting StartedThese 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] > helpCommand usage help
get - 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 - Reads an image and tries to decode it into a txt with RGB values.
download - Requests the URL and saves the response or downloadable file to the output file.
stop - Stops the thread represented by the input id.
If a thread is working it will wait until it has finished to stop it.job - 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](https://golang.org) - The programming language