surf
所属分类:浏览器
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2022-10-07 16:55:17
上 传 者:
sh-1993
说明: Go中的有状态编程web浏览。
(Stateful programmatic web browsing in Go.)
文件列表:
.travis.yml (220, 2021-09-08)
CHANGELOG.md (3175, 2021-09-08)
CONTRIBUTING.md (1250, 2021-09-08)
LICENSE.md (1096, 2021-09-08)
agent/ (0, 2021-09-08)
agent/agent.go (11136, 2021-09-08)
agent/agent_appengine.go (223, 2021-09-08)
agent/agent_bsd.go (450, 2021-09-08)
agent/agent_linux.go (758, 2021-09-08)
agent/agent_linux_arm.go (728, 2021-09-08)
agent/agent_test.go (3323, 2021-09-08)
agent/agent_windows.go (399, 2021-09-08)
browser/ (0, 2021-09-08)
browser/assets.go (5421, 2021-09-08)
browser/assets_test.go (1191, 2021-09-08)
browser/browser.go (22235, 2021-09-08)
browser/browser_test.go (6137, 2021-09-08)
browser/doc.go (80, 2021-09-08)
browser/form.go (13857, 2021-09-08)
browser/form_test.go (12713, 2021-09-08)
docs/ (0, 2021-09-08)
docs/about/ (0, 2021-09-08)
docs/about/credits.md (1294, 2021-09-08)
docs/about/license.md (1096, 2021-09-08)
docs/api/ (0, 2021-09-08)
docs/api/packages/ (0, 2021-09-08)
docs/api/packages/agent.md (9569, 2021-09-08)
docs/api/packages/browser.md (18776, 2021-09-08)
docs/api/packages/jar.md (5592, 2021-09-08)
docs/api/packages/surf.md (714, 2021-09-08)
docs/api/packages/util.md (243, 2021-09-08)
docs/debugging.md (230, 2021-09-08)
docs/index.md (2315, 2021-09-08)
docs/overview.md (5998, 2021-09-08)
docs/settings.md (1691, 2021-09-08)
docs/user_agents.md (1521, 2021-09-08)
errors/ (0, 2021-09-08)
errors/errors.go (2751, 2021-09-08)
... ...
Surf
====
[![Build Status](https://img.shields.io/travis/headzoo/surf/master.svg?style=flat-square)](https://travis-ci.org/headzoo/surf)
[![GoDoc](https://godoc.org/github.com/headzoo/surf?status.svg)](http://godoc.org/github.com/headzoo/surf)
[![Documentation](https://img.shields.io/badge/documentation-readthedocs-blue.svg?style=flat-square)](http://surf.readthedocs.io/)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/headzoo/surf/master/LICENSE.md)
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](#installation)
* [General Usage](#quick-start)
* [Documentation](#documentation)
* [Credits](#credits)
* [Contributing](#contributing)
* [License](#license)
### 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
```go
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](http://surf.readthedocs.io/).
### Credits
Surf uses the awesome [goquery](https://github.com/PuerkitoBio/goquery) by Martin Angers, and
was written using [Intellij](http://www.jetbrains.com/idea/) and
the [golang plugin](http://plugins.jetbrains.com/plugin/5047).
Contributions have been made to Surf by the following awesome developers:
* [Sean Hickey](https://github.com/headzoo)
* [Haruyama Seigo](https://github.com/haruyama)
* [Tatsushi Demachi](https://github.com/tatsushid)
* [Charl Matthee](https://github.com/charl)
* [Matt Holt](https://github.com/mholt)
* [lalyos](https://github.com/lalyos)
* [lestrrat](https://github.com/lestrrat)
* [Carl Henrik Lunde](https://github.com/chlunde)
* [cornerot](https://github.com/cornerot)
* [lennyxc](https://github.com/lennyxc)
* [tlianza](https://github.com/tlianza)
* [joshuamorris3](https://github.com/joshuamorris3)
* [sqs](https://github.com/sqs)
* [nicot](https://github.com/nicot)
* [Joseph Watson](https://github.com/jtwatson)
* [lxt2](https://github.com/lxt2)
The idea to create Surf was born in [this Reddit thread](http://www.reddit.com/r/golang/comments/2efw1q/mechanize_in_go/cjz4lze).
### Contributing
Issues and pull requests are _always_ welcome.
See [CONTRIBUTING.md](https://raw.githubusercontent.com/headzoo/surf/master/CONTRIBUTING.md) for more information.
### License
Surf is released open source software released under The MIT License (MIT).
See [LICENSE.md](https://raw.githubusercontent.com/headzoo/surf/master/LICENSE.md) for more information.
近期下载者:
相关文件:
收藏者: