Coder Social home page Coder Social logo

biddyweb / soyoustart-crawler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ovox/soyoustart-crawler

0.0 3.0 0.0 128 KB

This is a quick and gritty script that I threw together because I was bored of missing out on the new servers at SoYouStart. I am aware that it is terrible, but it works.

License: GNU General Public License v2.0

Shell 100.00%

soyoustart-crawler's Introduction

soyoustart-crawler

What is it?:

This is a quick and gritty script that I threw together because I was bored of missing out on the new servers at SoYouStart. I am aware that it is terrible, but it works.

Prerequisites:

The first prerequisite is that you read the script and understand what it does.

The second is ensuring the place you're running the script from can email out.

After that some basic things should be installed:

bash curl grep

Installation:

To run the script, you simply need to download the file, or copy and paste it, into a new location, and chmod it. I used one of my servers for monitoring since I could be assured that it wouldn't be offline.

After you have made the file executable, it would be a good idea to set up a cronjob to check the site.

SoYouStart servers sell extremely quickly, so you will want to set the timer to something like the following:

*/5 * * * * root /home/adam/soyoustart-crawler.bash

In the script currently it monitors three different servers: E3-SSD-1, E3-SSD-2, E3-SSD-3. This can be changed to monitor whichever SoYouStart server you wish, but you sill need to find the system codename (e.g. 143sys10 is E3-SSD-2) which can be obtained by wget'ing the entire page http://www.soyoustart.com/en/essential-servers/ and locating the system you are after, the codename is sprinkled around the code.

You then need to change the line in the script similar to the following:

curl -silent https://eu.soyoustart.com/en/cgi-bin/newOrder/order.cgi?hard=143sys10 > /tmp/143sys10 &&

This basically get's the 'order form' page of the server you're interested in. When the server is not available this prints an error page, including "Le paramètre est invalide".

Update any mention of the codename you desire in the script, and change the line "mail -s E3-SSD-1 " to your email address. You may have to allow email from your server if it gets marked as spam.

Contact:

If you'd like to get in touch, feel free to send me a message.

Contribution:

I can't imagine this is relevent, but contributions are welcome.

soyoustart-crawler's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.