Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $signs = [null, "aries", "taurus", "gemini", "cancer", "leo", "virgo", "libra", "scorpio", "sagittarius", "capricorn", "aquarius", "pisces"];
- $sign = array_search(strtolower("gemini"), $signs);
- if(!$sign) die("bad thing");
- /*///////////////////////////////////
- just copy the stuff below here b4 the print idk
- u know what 2 do
- ///////////////////////////////////*/
- $percent = array(1 => "20%", 2 => "40%", 3 => "60%", 4 => "80%", 5 => "100%");
- $page = file_get_contents("http://www.horoscope.com/us/horoscopes/general/horoscope-general-daily-today.aspx?sign=".$sign);
- $horo = trim(explode('<br><br>', explode('</b> - ', $page)[1])[0]);
- $chances = explode('text-right">', explode('<div class="row non-mobile">', explode('ratings">', $page)[1])[0]);
- array_shift($chances);
- foreach($chances as $i=>$chance) $chances[$i] = explode('</h4>', explode("<h4>", $chance)[1])[0]." ".$percent[explode('-stars', explode('ratings/', $chance)[1])[0]];
- //
- //
- print $horo."\n";
- print implode(" | " , $chances)."\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement