Package wikibrief is a golang package that provides utility functions for extracting information from Wikipedia dumps.
This package can be installed with the go get command:
go get github.com/negapedia/wikibrief
API documentation can be found in the associated godoc reference
AnonimousUserID is the UserID value assumed by revisions done by an anonimous user
This section is empty.
FanOut creates n copies of the given EvolvingPage channel; if n < 1 panics.
New digest the latest wikipedia dump of the specified language into the output channel. The revision channel of each page must be exhausted (or the context cancelled), doing otherwise may result in a deadlock. The ctx and fail together should behave in the same manner as if created with WithFail - https://godoc.org/github.com/ebonetti/ctxutils#WithFail The condition restrict restricts the digest to just one dump file, used for testing purposes.
type EvolvingPage ¶
EvolvingPage represents a wikipedia page that is being edited. Revisions is closed when there are no more revisions. Revision channel must be exhausted (or the context cancelled), doing otherwise may result in a deadlock.