fruit_scraping

command module
v0.0.0-...-30c2775 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2015 License: MIT Imports: 14 Imported by: 0

README

Fruit HTML scraping

This repo provides a basic script to scrape html doc and build JSON out of useful info present within.

###Instructions to run:

  1. Download and install Golang sdk, if not already, from https://golang.org/dl/
  2. Setup $GOPATH environment variable to some directory
  3. On your terminal create the relevant directories and navigate to it by running the following command

$ mkdir -p $GOPATH/src/github.com/sim4life && cd $_

  1. Now clone the repo in that directory by

$ git clone git@github.com:sim4life/fruit_scraping.git

  1. Then download dependencies by

$ go get golang.org/x/net/publicsuffix
$ go get github.com/PuerkitoBio/goquery
$ go get github.com/djimenez/iconv-go

  1. To run

$ go run fruitsJSON.go

  1. To test

$ go test

I hope you enjoy the show.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL