您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
lowrussia
ae6671fff6
|
4 年前 | |
---|---|---|
cgi-bin | 4 年前 | |
73361225_10216424132528545_9125637217060913152_n.jpg | 4 年前 | |
EHgeefUX0AAj51i.jpeg | 4 年前 | |
README.md | 4 年前 |
README.md
Image Roulette
A cgi-bin python script that picks up a random image from a directory and its subdirectories and show it in a browser.
Usage
- Place
image-roulette.py
into a directory namedcgi-bin
- Navigate to the directory containing the
cgi-bin
one - Launch a server with the command:
$ python3 -m http.server --cgi
- Open your browser on: http://0.0.0.0:8000/cgi-bin/image-roulette.py
- Press ENTER to load a new image
TODO
- insert main directory and title of gallery as parameters
- add automatic mode (reload every x seconds)