Skip to content

Lorem Ipsum generator using content from Wikipedia in different languages

License

Notifications You must be signed in to change notification settings

sepetrov/wikiipsum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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="admin@example.com" -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. admin@example.com
  -verbose
    	Verbose

License

See LICENSE.