MA3STR0 / kimsufi-crawler

Crawler that will send you an email alert as soon as servers on OVH/Kimsufi become available for purchase
MIT License
193 stars 60 forks source link

Very nice project #39

Closed szepeviktor closed 9 years ago

szepeviktor commented 9 years ago

My solution was a tiny shell script.

#!/bin/bash
#
# Kimsufi server alert.

AVAILABILITY_JSONP="https://ws.ovh.com/dedicated/r2/ws.dispatcher/getAvailability2?callback=Request.JSONP.request_map.request_0"
KS="150sk10"

wget -q -O- "$AVAILABILITY_JSONP" \
    | sed 's/},/},\n/g' \
    | grep -A8 "\"reference\":\"${KS}\"" | cut -d'"' -f8,12 \
    | tail -n +2 | grep -v "^unknown"

exit 0
MA3STR0 commented 9 years ago

Very good, thats exactly the software freedom - you share what you have, and people choose what they like to use

szepeviktor commented 9 years ago

:smile: I like yours better.