<commit_before>Unsplash Fetch (unsplash-dl)
==============

A simple script to download pictures from the tumblelog [Unsplash](http://unsplash.com/).
Runs in the background with launchd on OS X, could be adapted on other systems.
See also [New Old Stock Fetch](https://github.com/mcdado/newoldstock-dl)

Setup
-----

0. Download this repo in ZIP file and extract it wherever you want on your system.
1. Open Terminal, `cd` in the folder containing the repo files.
2. Execute: `mkdir -p ~/Pictures/Unsplash`
3. Execute: `ln -sfv "$(pwd)/unsplash-dl.php" /usr/local/bin`
4. Execute: `ln -sfv "$(pwd)/com.mcdado.unsplash.plist" ~/Library/LaunchAgents/`
5. Execute: `launchctl load ~/Library/LaunchAgents/com.mcdado.unsplash.plist`
6. Setup your preferred OS X Screensaver to look into `~/Pictures/Unsplash`

Notes
-----

* I assume you are using homebrew's php. If you're not, edit the file `unsplash-dl.php` at the first line with `#!/usr/bin/php`;
* The script requires [pecl\_http v2](http://pecl.php.net/package/pecl_http). You can install pecl_http with homebrew (php5*-http) or via PECL.
* The code is quite smelly, but it's that way because it is an experiment and I wanted to make it work quickly... any suggestions and improvements are welcome.<commit_msg>Minor updates to README.md<commit_after># Unsplash Fetch (unsplash-dl) #
==============

A simple script to download pictures from the tumblelog [Unsplash](http://unsplash.com/).
Runs in the background with launchd on OS X, could be adapted on other systems.
See also [New Old Stock Fetch](https://github.com/mcdado/newoldstock-dl)

## Setup ##

0. Download this repo in ZIP file and extract it wherever you want on your system.
1. Open Terminal, `cd` in the folder containing the repo files.
2. Execute: `mkdir -p ~/Pictures/Unsplash`
3. Execute: `ln -sfv "$(pwd)/unsplash-dl.php" /usr/local/bin`
4. Execute: `ln -sfv "$(pwd)/com.mcdado.unsplash.plist" ~/Library/LaunchAgents/`
5. Execute: `launchctl load ~/Library/LaunchAgents/com.mcdado.unsplash.plist`
6. Setup your preferred OS X Screensaver to look into `~/Pictures/Unsplash`

## Notes ##

* I assume you are using homebrew's php. If you're not, edit the file `unsplash-dl.php` at the first line with `#!/usr/bin/php`;
* The script requires [pecl\_http v2](http://pecl.php.net/package/pecl_http). You can install pecl_http with homebrew (php5*-http) or via PECL.
* The code is quite smelly, but it's that way because it is an experiment and I wanted to make it work quickly... any suggestions and improvements are welcome.
{'fraction_non_alphanumeric': 0.12790240062967337, 'fraction_numerical': 0.0070838252656434475, 'mean_word_length': 4.1561866125760645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7332541', 'n_tokens_mistral': 864, 'n_tokens_neox': 830, 'n_words': 321}