1
0
Fork 0
Winning Code for "Shortest Code" at Coding Contest @ FH Joanneum 2014
Go to file
Manuel Kamper 466c51545a Dateien hochladen nach „“ 2022-12-06 10:52:30 +00:00
LICENSE Initial commit 2022-12-06 08:22:42 +00:00
README.md „README.md“ ändern 2022-12-06 10:49:04 +00:00
contest.cfg Dateien hochladen nach „“ 2022-12-06 10:52:30 +00:00
contest.py Dateien hochladen nach „“ 2022-12-06 10:52:30 +00:00

README.md

CodingContest-FHJoanneum-Winner

Winning Code for "Shortest Code" at Coding Contest @ FH Joanneum 2014.

This shortest code (only 3 lines) downloads images from flickr for a keyword and creates a HTML-slideshow and saves the image metadata in a csv-file.

Your Task (use python):

1.) script takes search tearm (command line parameter)
2.) search (wherever: flikr, google, ...) and load the images found
3.) into local dir (specified in config file "contest.cfg")
4.) create output *.csv file for "meta data" (URL, downloadtime,... for each image)
5.) create (static HTML) diashow (local files, relative links)

Solution-Readme:

Downloads Images from flickr.
.) specify the local download-path in contest.cfg (full path must exist!)
.) start the script with the search term (f.e. contest.py "cat funny") - dont forget the "" if you are using more than 1 word!
.) script downloads now all images into specified directory and creates a html-slideshow
.) script doesn't make any outputs to cmd-line (except uncatched python-errors)
.) get some information about your downloads in the meta.csv
.) start the diashow with page1.htm - next page loads automatically after 5 seconds
.) you can switch through images manually by clicking the "previous" or "next" links