surf

Stateful programmatic web browsing in Go.

  • 所有者: headzoo/surf
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Surf

Build Status
GoDoc
Documentation
MIT License

Surf is a Go (golang) library that implements a virtual web browser that you control programmatically.
Surf isn't just another Go solution for downloading content from the web. Surf is designed to behave
like web browser, and includes: cookie management, history, bookmarking, user agent spoofing
(with a nifty user agent builder), submitting forms, DOM selection and traversal via jQuery style
CSS selectors, scraping assets like images, stylesheets, and other features.

Installation

Download the library using go.
go get gopkg.in/headzoo/surf.v1

Import the library into your project.
import "gopkg.in/headzoo/surf.v1"

Quick Start

package main

import (
	"gopkg.in/headzoo/surf.v1"
	"fmt"
)

func main() {
	bow := surf.NewBrowser()
	err := bow.Open("http://golang.org")
	if err != nil {
		panic(err)
	}

	// Outputs: "The Go Programming Language"
	fmt.Println(bow.Title())
}

Documentation

Complete documentation is available on Read the Docs.

Credits

Surf uses the awesome goquery by Martin Angers, and
was written using Intellij and
the golang plugin.

Contributions have been made to Surf by the following awesome developers:

The idea to create Surf was born in this Reddit thread.

Contributing

Issues and pull requests are always welcome.

See CONTRIBUTING.md for more information.

License

Surf is released open source software released under The MIT License (MIT).
See LICENSE.md for more information.

主要指标

概览
名称与所有者headzoo/surf
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2014-08-25 06:29:53
推送于2024-01-24 19:54:47
最后一次提交2021-09-08 09:53:22
发布数22
最新版本名称v1.0.1 (发布于 )
第一版名称0.1 (发布于 )
用户参与
星数1.5k
关注者数35
派生数160
提交数358
已启用问题?
问题数74
打开的问题数42
拉请求数35
打开的拉请求数14
关闭的拉请求数19
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?