Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file htmlbot.php :
- <?
- echo "HTML BOT<br />";
- $handle = @fopen(dirname(__FILE__)."/urllist.txt", "r");
- $reqcount=0;
- $keywords=array("twitter.com/jpsarda"=>0,"http://bonuslevel.org"=>0,"http://www.bonuslevel.org"=>0,"http://microminers.com"=>0,"http://www.microminers.com"=>0,"twitter.com/microminers"=>0,"twitter.com/bonuslevelorg"=>0);
- $kindurls=array();
- $atleastonecount=0;
- if ($handle) {
- while (($buffer = fgets($handle, 4096)) !== false) {
- $reqcount++;
- echo "Requesting page [$reqcount] ".$buffer." ...<br />";
- //$page_source=file_get_contents($buffer);
- $curl_handle=curl_init();
- curl_setopt($curl_handle, CURLOPT_URL,$buffer);
- curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
- curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($curl_handle, CURLOPT_USERAGENT, 'HTML BOT');
- $page_source = curl_exec($curl_handle);
- curl_close($curl_handle);
- $onefound=0;
- foreach ($keywords as $k => $v) {
- $found=(strrpos($page_source, $k)!==false);
- $v+=$found;
- if ($found) $onefound=1;
- $keywords[$k]=$v;
- echo " ".$k." [".$found."]";
- }
- $atleastonecount+=$onefound;
- if ($onefound) {
- $kindurls[]=$buffer;
- }
- echo "<br />";
- }
- if (!feof($handle)) {
- echo "Error: unexpected fgets() fail\n";
- }
- fclose($handle);
- echo "Total requests : $reqcount<br />";
- foreach ($keywords as $k => $v) {
- echo $k." [".$v."][".$v*100/$reqcount."%]<br />";
- }
- echo "One of them [".$atleastonecount."][".$atleastonecount*100/$reqcount."%] :<br />";
- foreach ($kindurls as $k => $v) {
- echo "$v<br />";
- }
- }
- ?>
- file urllist.txt :
- http://uk.ign.com/articles/2012/11/15/app-store-update-november-15-2
- http://www.macinplay.de/2012/11/ios-micro-miners-immer-tiefer-immer-besser/
- http://www.funtouch.net/Actu-11931-Micro-Miners-petits-mineurs-pour
- http://www.youtube.com/watch?v=4FZwSTZxsW8&feature=youtu.be&a
- http://taptoplay.ru/2012/11/micro-miners/
- http://www.buzzfeed.com/nowthisnews/5-coolest-and-new-gaming-apps-749g
- http://www.pocketgamer.co.uk/r/iPhone/Micro+Miners/review.asp?c=46812
- http://appleprogs.com/micro-miners-little-swearing-men-in-big-pixels.html
- http://blog.livedoor.jp/kamekameboy/archives/20351475.html
- http://www.stromstock.de/2012/11/21/test-microminers-video/
- http://ireviewt.com/index.php/2012/11/25/micro-miners-review/
- http://www.businessinsider.com/micro-miners-review-iphone-ipad-2012-11
- http://www.modojo.com/reviews/ipad/micro_miners/
- http://uk.ign.com/videos/2012/11/15/microminers-developer-gameplay-demonstration
- http://www.metacritic.com/game/ios/micro-miners/critic-reviews
- http://indiegames.com/2012/11/best_of_indie_games_from_micro.html
- http://arcadesushi.com/micro-miners-review/
- http://belgium-iphone.lesoir.be/2012/11/16/micro-miners-debarque-sur-lapp-store-5-licences-a-remporter/
- http://puzzle-app.com/2012/11/18/micro-miners.html
- https://twitter.com/notch/status/244493852151521280
- http://www.freegli.com/iphone/micro-miners
- http://lab.weiphone.com/iPhone/games/2012-11-17/The_ultra-_creative_pixel_clearance_mini_miners_538790.shtml
- http://jayisgames.com/archives/2012/11/micro_miners.php
- http://www.appsontapp.com/micro-miners/
- http://gamek.vn/c214n2012111911579820/micro-miners-dao-vang-kieu-ios.chn
- http://www.iphoneitalia.com/micro-miners-un-fantastico-retro-game-ispirato-a-miners4k-la-recensione-completa-di-iphoneitalia-436453.html
- http://www.appgefahren.de/microminers-gruben-graben-mit-kleinen-retro-minenarbeitern-55635.html
- http://www.ipadblogs.nl/2012/11/klassiek-mijnen-pixelprachtige-micro-miners/
- http://www.148apps.com/reviews/microminers-review/
- http://www.stromstock.de/wordpress/?p=4258
- http://appadvice.com/appnn/2012/11/todays-best-apps-real-boxing-coaster-crazy-rock-festival-and-more
- http://toucharcade.com/2012/11/19/micro-miners-review/#comments
- http://de.news-republic.com/Web/ArticleWeb.aspx?regionid=9&articleid=5219569
- http://feber.se/iphone/art/257447/vi_provar_micro_miners/
- http://www.modojo.com/features/micro_miners_cheats_and_tips/
- http://ipad.qualityindex.com/news/19012/qis-top-10-ipad-games-and-apps-of-november-2012
- http://www.metacritic.com/feature/best-ios-games-november-2012
- http://www.macinplay.de/2012/12/macinplay-adventskalender-turchen-1/
- http://www.macinplay.de/spiele-tests/ipad/micro-miners/
- http://iphone.qualityindex.com/games/664164/micro-miners
- http://www.businessinsider.com/micro-miners-cheats-and-tips-2012-11
- http://www.gametrailers.com/mobile-apps/40547/app-of-the-day-micro-miners
- http://app4phone.fr/article-65833/microminers
- http://www.youtube.com/watch?v=9Dgd328o9i4
- http://n4g.com/news/1127563/pocket-gamer-micro-miners-review
- http://www.gamezebo.com/games/micro-miners
- http://gameviewpoint.com/iphone/micro-miners/
- http://www.metacritic.com/game/ios/micro-miners
- http://www.148apps.com/tag/micro-miners/
- http://appaddict.net/2012/11/20/the-portable-podcast-the-struggles-of-indie-ios-devs-to-make-a-fair-yet-profitable-freemium-titles/
- http://www.macitynet.it/iphonia/articolo/Micro-Miners-minatori-micro-inarrestabili-su-iPhone-e-iPad/aA65068
- http://de.pocketgamer.com/content/testbericht-micro-miners-ios-review
- http://www.worldofapple.nl/2012/12/review-micro-miners-voor-iphone-ipod-touch-en-ipad/
- http://www.appmyworld.com/blog/top-5-iphone-and-ipad-games-of-the-week-12512.html#.UL-cAJPjkjc
- http://www.youtube.com/watch?v=4FZwSTZxsW8
- http://www.youtube.com/watch?v=yC-JIFtNJJY
- http://www.youtube.com/watch?v=JXCmwLkg0XA
- http://www.modojo.com/reviews/iphone/micro_miners/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement