项目作者: AnikHasibul

项目描述 :
package bing provides web search functionalities by scraping bing search engine.
高级语言: Go
项目地址: git://github.com/AnikHasibul/bing.git
创建时间: 2018-10-31T14:05:57Z
项目社区:https://github.com/AnikHasibul/bing

开源协议:MIT License

下载


bing


import “github.com/anikhasibul/bing”

package bing provides web search functionalities by scraping bing search engine.

Usage

  1. func Search(query string, blacklist []string) (results []string, err error)

Search searches a query on bing. NOTE: results may not be empty even if the
error is not nil. Because, an error can be occured at 1000th page. So you can
still be able to get the data of previous 999 pages. ;)

func SearchWithTimeout

  1. func SearchWithTimeout(query string, blacklist []string, duration time.Duration) (results []string, err error)

SearchWithTimeout searches a query on bing with timeout, usefull for the long
result queries. NOTE: results may not be empty even if the error is not nil.
Because, an error can be occured at 1000th page. So you can still be able to get
the data of previous 999 pages. ;)

func Unique

  1. func Unique(sites []string) []string

Unique removes duplicate values from the given list.

func HostOnly

  1. func HostOnly(list []string) []string

HostOnly returns only valid hostname from a result list.