package
module
Version:
v1.2.2
Opens a new window with list of versions in this module.
Published: May 4, 2017
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
README
¶
pick
pick stuff from html
installation
go get -u gopkg.in/ddo/pick.v1
TODO:
- #GetForm
- NewTokenizerFragment
- NextIsNotRawText
- 1 testing html but cover all cases
- script
- AllowCDATA
- benchmark
Documentation
¶
PickAttr gets attribute Option.Attr of elements that matches the Option.TagName
input can be input/select/textarea
TODO: now only get 1st value, need []string as result
TODO: pick select option that has no value attr
TODO: radio
PickHtml gets html of elements that matches the Option.TagName (including it's child elements)
PickText gets text of elements that matches the Option.TagName (including it's child elements)
Attr to define an element's attribute
<input type="hidden" />
-> Attr{Label: "type", Value: "hidden"}
Option
PageSource: html reader
TagName: element's tag. ex: div, p, form, input...
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.