Giter Club home page Giter Club logo

go-boilerpipe's Introduction

go-boilerpipe's People

Contributors

jlubawy avatar ransford 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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go-boilerpipe's Issues

JSON and Image Extraction

Hello, wondering if it's on your roadmap to have JSON and Image Extraction features?

{ "response": { "title": null, "content": " \nThe third characteristic of web page writing ....\n ", "source": "https://www.york.ac.uk/teaching/cws/wws/webpage4.html", "images": [ { "src": "https://www.york.ac.uk/teaching/cws/wws/toofar.gif", "width": null, "height": null, "alt": "some alt" } ] }, "status": "success" }

go install github.com/... fails

When I run this:
$ go install github.com/jlubawy/go-boilerpipe/cmd/boilerpipe

I get:

can't load package: package github.com/jlubawy/go-boilerpipe/cmd/boilerpipe: cannot find package "github.com/jlubawy/go-boilerpipe/cmd/boilerpipe" in any of:
        /usr/local/go/src/github.com/jlubawy/go-boilerpipe/cmd/boilerpipe (from $GOROOT)
        /Users/bodell/go/src/github.com/jlubawy/go-boilerpipe/cmd/boilerpipe (from $GOPATH)

I'm a Go newbie. Maybe I need to do more to set it up on my machine?

Embed use

Hi There!
What would be best way to use it in the project where I have bunch of web pages in []byte form.

Something like

b, _ := boilerpipe.ExtractFromBytes([]byte{"Some single html page here"}) 
fmt.Println(b.Content)

I did some "cowboy shortcut"

func boiler(b []byte) string {
	r := bytes.NewReader(b)
	doc, err := boilerpipe.ParseDocument(r)
	if err != nil {
		log.Fatal(err)
	}
	boilerpipe.ArticlePipline.Process(doc)
	return doc.Content()
}

Works good so far:-)

Same Content but different Results

First
Second

When I tested the code with these two url, I faced with a problem.
The problem is these two page contains same contents but the code returns different results.
I also tested with base boilerpipe library with Java and Python also but they produce correct results.

If you want me to share some images.. I can.

Thank you

Error installing

โ—‹ go get github.com/jlubawy/go-boilerpipe/cmd/boilerpipe

github.com/jlubawy/go-boilerpipe

gocode/src/github.com/jlubawy/go-boilerpipe/actions.go:173:2: undefined: atom.Menuitem

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.