Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.39 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.39 KB

wikiipsum

Lorem Ipsum generator using content from Wikipedia.


A small program written in Go to generate random text in specified language using the Wikimedia REST API.

Compilation

You need Go. Download and install it if you don't have it yet.

Clone the repository.

git clone [email protected]:sepetrov/wikiipsum.git .

Navigate to the directory with the source code.

cd wikiipsum

Compile a binary.

go build -o wikiipsum .

Download

To download a precompiled binary visit the releases page.

Usage

Lorem Ipsum generates text using content from Wikipedia and prints it to the standard output.
For more information visit https://github.com/sepetrov/wikiipsum.

Example:

	./wikiipsum -user-agent="[email protected]" -lang="en" -length="500"

Usage of ./wikiipsum:
  -lang string
    	Language code, e.g. 'en'
  -length string
    	Length of generated text, e.g. '500' for 500 bytes, '100 bytes', '100 Kb', '1.5 MB' etc.
  -rate float
    	Request rate limit in req/s
  -user-agent string
    	User agent header for API calls to Wikipedia. It should provide information how to contact you, e.g. [email protected]
  -verbose
    	Verbose

License

See LICENSE.