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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址