Skip to content

FireArrow/randomImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

randomImage

Used to grab random image from configured sources according to tag

Config

Each source is responsible for its own config.

Tumblr

A list of json objects

[
        {
                "url"          : "http://emergencykittens.tumblr.com/",
                "img_path"     : "//*[@class=\"photo-wrapper-inner\"]//img",
                "size_path"    : "//*[@id=\"pagination\"]/a",
                "size_pattern" : "data-total-pages=\"(\\d+)",
                "tags"         : [ "cute", "kittens" ]
        }
]

TODO

  • Write documentation
  • Refactor code to a less hacky structure

The only reason the code is published in this state is because someone asked to see it right away

About

A small web service which shows a random image from one of the configured sources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors