Documentation ¶
Overview ¶
package scrape handles interface specifications and concrete wiki-specific implementations for the scraping and parsing of the content from pages served by various Wiki frameworks.
Currently supported API backends: see 'wikiscrape list backends'
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaWikiAPIError ¶
MediaWiki API error format, for a list of error codes and their associated information see: http://tinyurl.com/mwerrorcodes
func (*MediaWikiAPIError) Error ¶
func (e *MediaWikiAPIError) Error() string
Error returns a formatted MediaWiki error including code and additional information
type MediaWikiScraper ¶
type MediaWikiScraper struct {
BaseURL string
}
Wraps methods for retrieving and parsing pages on a MediaWiki based website.
func (*MediaWikiScraper) RequestHeadings ¶
func (s *MediaWikiScraper) RequestHeadings(path string, maxLevel int) ([]string, error)
func (*MediaWikiScraper) RequestPage ¶
func (s *MediaWikiScraper) RequestPage(path string) (Response, error)
RequestPage fetches a page specified by path via HTTP and returns a MediaWikiResponse containing the Response.