Post Reply 
 
Thread Rating:
  • 4 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BursaApk (Grabber)
02-03-2015, 03:07 AM
Post: #31
RE: BursaApk (Grabber)
can someone help, how do i ad google adsense to this script everytime i try i get white page.
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-03-2015, 04:08 AM
Post: #32
RE: BursaApk (Grabber)
try to add responsive adcode
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
[-] The following 1 user Likes NEPSALONE's post:
craigibhoy (02-03-2015)
02-03-2015, 05:10 AM
Post: #33
RE: BursaApk (Grabber)
Thanks neps works fine now happy
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-03-2015, 06:15 AM
Post: #34
RE: BursaApk (Grabber)
Google approved grabber site? surprise
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-04-2015, 06:18 PM
Post: #35
RE: BursaApk (Grabber)
I am so glad you are already using my script. Thank you. until now the script is still running very well. Demo: http://android.webs.pm

http://sellfy.com/achunk17
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-04-2015, 06:35 PM
Post: #36
RE: BursaApk (Grabber)
Welcome sir! but sorry to say that we had already removed adf.ly api.

Best Ad Network - Daily Payment - SEO Friendly
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-04-2015, 07:15 PM (This post was last modified: 02-04-2015 07:19 PM by achunk17.)
Post: #37
RE: BursaApk (Grabber)
(02-04-2015 06:35 PM)Junior Wrote:  Welcome sir! but sorry to say that we had already removed adf.ly api.

Ok. No Problem

BursaApk.php[/b][/php]
PHP Code:
<?php

/**
 * @package BursaApk
 * @version 1.0
 * @category Grabber
 * @filesource https://drive.google.com/file/d/0B0qH6AxfggiiLXRjQTFNMVBLWlE/view?usp=sharing
 * @name BursaApk.php
 * @author Achunk JealousMan
 * @link http://your.my.id
 */

defined('__ANDROID_APPS__') or die('Error');

class 
BursaApk {
    private 
$server;
    private 
$context;
    private 
$header = array();
    private 
$breadcrumb;
    private 
$labels;

    public function 
__construct() {
        
$this->server 'http://globalapk.com';
        
$opts = array('http' => array('method' => "GET"'header' =>
                    
"Accept-language: en\r\n" .
                    
"User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7\r\n" .
                    
"Referer: " $this->server "\r\n"));
        
$this->labels = array(
            
'android-apps' => 'Apps',
            
'android-games' => 'Games',
            
'free' => 'Free',
            
'recommended-apps' => 'Editor\'s Choice');
        
$this->context stream_context_create($opts);
    }

    public function 
getContent($uri) {
        if ((
$load file_get_contents($this->server $urifalse$this->context))
            === 
false)
            return 
$this->showError('Tidak dapat menampilkan konten');

        
$load $this->replaces($load);
        
$dom = new simple_html_dom();
        
$dom->load($load);
        
$content '';

        if (
$find $dom->find('#dle-content'0)) {
            
$head $find->find('.full-top'0);
            
$img $this->server $head->find('.poster-image img'0)->src;
            
$name $head->find('#news-title'0)->innertext;
            
$this->header['title'] = $this->header['og:title'] = $name;
            
$this->header['description'] = $this->header['og:description'] = $dom->find('meta[name=description]',
                
0)->content;
            
$this->header['og:url'] = 'http://' strtolower($_SERVER['SERVER_NAME'] .
                
$_SERVER['REQUEST_URI']);
            
$this->header['og:type'] = 'article';
            
$this->header['keywords'] = $dom->find('meta[name=keywords]'0)->content;
            
$this->breadcrumb '<ol class="breadcrumb"><li><a href="' BASEURL .
                
'/index.php">Home</a></li><li><a href="' BASEURL '/' $_GET['category'] .
                
'">' . (isset($this->labels[$_GET['category']]) ? $this->labels[$_GET['category']] :
                
'?') . '</a></li><li>' $name '</li></ol>';
            
$app_info $head->find('.full-top-center'0);
            
$app_info->find('.info-field'1)->outertext '';
            
$app_info->find('.info-rating'0)->outertext '';
            
$app_info->find('.clear'0)->outertext '';

            
$content .= '<div class="media"><div class="media-left">' .
                
'<img src="' $img .
                
'"/></div><div class="media-body"><h4 class="media-heading">' .
                
htmlentities($name) . '</h4><p>' str_replace($this->server,
                
BASEURL$app_info->innertext) . '</p></div></div>';
            
$c_body $find->find('.full-right1-2'0);
            
$this->header['og:image'] = $this->server $c_body->find('img'0)->src;

            
$content .= '<div class="app-desc" id="app-desc">';

            
$content .= str_replace($this->server '/tags/''#'str_replace('src="/uploads/',
                
'style="display:block;max-width:100%;height:auto;margin: 0 auto !important;" src="' .
                
$this->server '/uploads/'$c_body->innertext));
            
$content .= '</div>';

            
$dl $find->find('.linksFieldslink a'0);
            
$dlink $dl->href;
            
parse_str(parse_url($dl->hrefPHP_URL_QUERY));
            
$dlink base64_decode($Convert);

            
// Gak mau pake AdFly?, hapus aja kode berikut
            
$dlink file_get_contents('http://api.adf.ly/api.php?key=908191810298bc748c1dc1d1b2172921&uid=1624156&advert_type=int&domain=adf.ly&url=' .
                
urlencode($dlink));

            
$dlink2 $dl $find->find('.linksFieldslinkg a'0);
            
$dlink2 $dlink2->href;

            
// Gak mau pake AdFly?, hapus aja kode berikut
            
$dlink2 file_get_contents('http://api.adf.ly/api.php?key=908191810298bc748c1dc1d1b2172921&uid=1624156&advert_type=int&domain=adf.ly&url=' .
                
urlencode($dlink2));

            
$content .=
                
'<div class="row download"><div class="col-sm-6 text-center">' .
                
'<a class="btn btn-primary btn-block" href="' $dlink .
                
'" target="_blank"><span class="glyphicon glyphicon-download-alt">' .
                
'</span> Download from Bursa Apk</a>' .
                
'</div><div class="col-sm-6 text-center"><a class="btn btn-primary btn-block" href="' .
                
$dlink2 .
                
'" target="_blank"><span class="glyphicon glyphicon-play">' .
                
'</span> Download from Google Play</a></div>';

            
$content .=
                
'</div><div class="sharethis text-center" style="margin-top: 10px">' .
                
'<span class="st_facebook" displayText="Facebook"></span>' .
                
'<span class="st_twitter" displayText="Tweet"></span>&nbsp;' .
                
'<span class="st_googleplus" displayText="Google +"></span>&nbsp;' .
                
'<span class="st_pinterest" displayText="Pinterest"></span>&nbsp;' .
                
'<span class="st_email" displayText="Email"></span></div>' .
                
'<script type="text/javascript">var switchTo5x=true;</script>' .
                
'<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js">' .
                
'</script><script type="text/javascript">stLight.options({publisher: ' .
                
'"3ec16768-966b-4df7-8885-e16887cf275e",' .
                
' doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>';

            if (
$relateds $find->find('.related-block .main-news-image')) {
                
$sidebar '<hr/>';
                
$sidebar .= '<h4 class="page-header">Related Apps</h4>';
                
$sidebar .= '<div class="row">';

                foreach (
$relateds as $related) {
                    
$rl $related->find('a'0);
                    
$img $related->find('img'0);
                    
$link $link str_ireplace($this->serverBASEURL$rl->href);
                    
$title $img->title;
                    
$image $this->server $img->src;
                    
$sidebar .=
                        
'<div class="col-xs-6 col-sm-4 col-md-3 item-container">' .
                        
'<div class="item text-center">' .
                        
'<a class="thumbnail" href="' $link .
                        
'"><img class="img-responsive" src="' $image .
                        
'" alt="' $title '" title="' $title .
                        
'" /></a><h4 class="item-title"><a href="' $link .
                        
'" title="' $title '">' $title .
                        
'</a></h4></div></div>';
                }

                
$sidebar .= '</div>';
                
$content .= $sidebar;
            }
        }
        else {
            return 
$this->getError('Kontent yang dipilih tidak tersedia!');
        }
        return 
$content;
    }

    public function 
getMain($uri) {
        global 
$category$subcategory$tags$page$android_apps$android_games;
        
$categories array_merge($android_apps$android_games);
        
$content '';

        if ((
$load file_get_contents($this->server $urifalse$this->context))
            === 
false)
            return 
$this->showError('Tidak dapat menampilkan konten');

        
$load $this->replaces($load);
        
$dom = new simple_html_dom();
        
$dom->load($load);
        
$this->header['description'] = $dom->find('meta[name=description]'0)->content;
        
$this->header['keywords'] = $dom->find('meta[name=keywords]'0)->content;
        
$this->header['title'] = $dom->find('title'0)->innertext;

        if (isset(
$_GET['tags']) && $_GET['tags'] == '0' && ($main $dom->find
            
('#dle-content .hheader2'0))) {
            
$breadcrumb '<ol class="breadcrumb">';
            
$breadcrumb .= '<li><a href="' BASEURL .
                
'/index.php">Home</a></li>';
            
$breadcrumb .= '<li>Tag cloud</li>';
            
$breadcrumb .= '</ol>';
            
$this->breadcrumb $breadcrumb;
            
$content $main->innertext;
        }
        elseif (
$main $dom->find('.main-news')) {
            if (
$category) {
                
$breadcrumb '<ol class="breadcrumb">';
                
$breadcrumb .= '<li><a href="' BASEURL .
                    
'/index.php">Home</a></li>';
                if (
$subcategory) {
                    
$breadcrumb .= '<li><a href="' BASEURL '/' $category .
                        
'">' . (isset($this->labels[$category]) ? $this->labels[$category] :
                        
'?') . '</a></li>';
                    
$breadcrumb .= '<li>' . (isset($categories[$subcategory]) ?
                        
$categories[$subcategory] : '?') . '</li>';
                }
                else {
                    
$breadcrumb .= '<li>' . (isset($this->labels[$category]) ? $this->labels[$category] :
                        
'?') . '</li>';
                }
                
$breadcrumb .= '</ol>';
                
$this->breadcrumb $breadcrumb;
            }
            elseif (isset(
$_GET['tags'])) {
                
$breadcrumb '<ol class="breadcrumb">';
                
$breadcrumb .= '<li><a href="' BASEURL .
                    
'/index.php">Home</a></li>';
                if (!empty(
$tags)) {
                    
$breadcrumb .= '<li><a href="' BASEURL .
                        
'/tags/">Tag cloud</a></li>';
                    
$breadcrumb .= '<li>' $tags '</li>';
                }
                else {
                    
$breadcrumb .= '<li>Tag cloud</li>';
                }
                
$breadcrumb .= '</ol>';
                
$this->breadcrumb $breadcrumb;
            }

            foreach (
$main as $item) {
                
$link $item->find('.main-news-image a'0);
                
$image $link->find('img'0);
                
$link str_ireplace($this->serverBASEURL$link->href);
                
$title $image->title;

                
$content .= '<div class="media"><a class="media-left" href="' .
                    
$link '">' '<img src="' $this->server $image->src .
                    
'"/></a><div class="media-body"><h4 class="media-heading"><a href="' .
                    
$link '">' $title '</a></h4>' $item->find('.main-news-description',
                    
0)->innertext .
                    
'<p style="margin-top:5px;font-style:italic;">Category: ' .
                    
$item->find('.main-news-cat a'0)->innertext .
                    
'<p></div></div>';
            }

            if (
$navs $dom->find('.navigation'0)) {
                
$content .=
                    
'<div class="pagination-container"><ul class="pagination pagination-sm">';
                
$navs->find('div'0)->outertext '';
                
$nav $navs->innertext;

                
$content .= str_ireplace(array(
                    
'<span>',
                    
'<span class="nav_ext">',
                    
'</span>',
                    
'<a',
                    
'</a>',
                    
'/">'), array(
                    
'<li class="disabled"><span>',
                    
'<li class="disabled"><span>',
                    
'</span></li>',
                    
'<li><a',
                    
'</a></li>',
                    
'">',
                    ), 
$nav);

                
$content .= '</ul></div>';
            }
        }
        else
            return 
$this->showError('Konten tidak tersedia!');

        return 
$content;
    }

    public function 
search($q) {
        global 
$page;

        if (
mb_strlen($q) >= && mb_strlen($q) <= 30) {
            
$breadcrumb '<ol class="breadcrumb">';
            
$breadcrumb .= '<li><a href="' BASEURL .
                
'/index.php">Home</a></li>';
            
$breadcrumb .= '<li><a href="' BASEURL .
                
'/search/">Search</a></li>';
            
$breadcrumb .= '<li>' $q '</li>';
            
$breadcrumb .= '</ol>';
            
$this->breadcrumb $breadcrumb;

            if (
$page == 1) {
                
$page 0;
                
$result_form 1;
            }
            else {
                
$result_form = ($page 1) * 40 1;
            }

            
$postdata http_build_query(array(
                
'do' => 'search',
                
'subaction' => 'search',
                
'search_start' => $page,
                
'full_search' => '1',
                
'result_from' => $result_form,
                
'all_word_seach' => '1',
                
'titleonly' => '3',
                
'story' => $q,
                ));

            
$opts = array('http' => array(
                    
'method' => "POST",
                    
'header' => "Accept-language: en\r\n" .
                        
"User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7\r\n" .
                        
"Referer: " $this->server "\r\n" .
                        
"Content-type: application/x-www-form-urlencoded\r\n",
                    
'content' => $postdata,
                    ));

            
$context stream_context_create($opts);

            if ((
$load file_get_contents($this->server .
                
'/index.php?do=search'false$context)) === false)
                return 
$this->showError('Tidak dapat menampilkan konten');

            
$load $this->replaces($load);
            
$dom = new simple_html_dom();
            
$dom->load($load);
            
$this->header['description'] = $dom->find('meta[name=description]',
                
0)->content;
            
$this->header['keywords'] = $dom->find('meta[name=keywords]'0)->content;
            
$this->header['title'] = $dom->find('title'0)->innertext;
            
$content '';

            if (
$main $dom->find('.main-news')) {
                foreach (
$main as $item) {
                    
$link $item->find('.main-news-image a'0);
                    
$image $link->find('img'0);
                    
$link str_ireplace($this->serverBASEURL$link->href);
                    
$title $image->alt;
                    
$content .=
                        
'<div class="media"><a class="media-left" href="' $link .
                        
'">' '<img src="' $this->server $image->src .
                        
'"/></a><div class="media-body"><h4 class="media-heading"><a href="' .
                        
$link '">' $title '</a></h4>' $item->find('.main-news-description',
                        
0)->innertext .
                        
'<p style="margin-top:5px;font-style:italic;">Category: ' .
                        
$item->find('.main-news-cat a'0)->innertext .
                        
'<p></div></div>';
                }
                if (
$navs $dom->find('.navigation'0)) {
                    
$content .=
                        
'<div class="pagination-container"><ul class="pagination pagination-sm">';
                    
$navs->find('div'0)->outertext '';
                    
$nav $navs->innertext;
                    
$content .= str_ireplace(array(
                        
'<span>',
                        
'<span class="nav_ext">',
                        
'</span>',
                        
'<a',
                        
'</a>',
                        
'/">'), array(
                        
'<li class="disabled"><span>',
                        
'<li class="disabled"><span>',
                        
'</span></li>',
                        
'<li><a',
                        
'</a></li>',
                        
'">',
                        ), 
$nav);
                    
$content .= '</ul></div>';
                }
            }
            else
                return 
$this->showError('Not found!');
        }
        else {
            
$breadcrumb '<ol class="breadcrumb">';
            
$breadcrumb .= '<li><a href="' BASEURL .
                
'/index.php">Home</a></li>';
            
$breadcrumb .= '<li>Search</li>';
            
$breadcrumb .= '</ol>';
            
$this->breadcrumb $breadcrumb;
            
$content =
                
'<div class="alert alert-info">Enter keyword min. 4 and max. 30 characters.</div>';
        }
        return 
$content;
    }

    public function 
getHeader() {
        return 
$this->header;
    }

    public function 
breadcrumb() {
        return 
$this->breadcrumb;
    }

    private function 
replaces($text) {
        
$replaces = array(
            
'href="' $this->server => 'href="' BASEURL,
            
'global apk' => 'Bursa Apk',
            );
        return 
str_ireplace(array_keys($replaces), array_values($replaces), $text);
    }

    private function 
showError($message false) {
        if (
$message == false) {
            
$message '<h4>Tidak dapat memproses permintaan!</h4>' .
                
'<p><strong>Kemungkinan:</strong><br/><ul><li>URL Tidak benar</li>' .
                
'<li>Halaman tidak ada atau telah dihapus</li>' .
                
'<li>Koneksi ke server sedang terganggu</li>' .
                
'</ul></p><p><a class="alert-link" href="' BASEURL .
                
'/index.php"><span class="glyphicon glyphicon-home"></span> Halaman utama</a></p>';
        }
        return 
'<div class="alert alert-danger">' $message '</div>';
    }
}
?>


Attached File(s)
.php  BursaApk.php (Size: 17.51 KB / Downloads: 43)

http://sellfy.com/achunk17
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
[-] The following 1 user Likes achunk17's post:
bigzero (02-07-2015)
02-05-2015, 01:54 AM
Post: #38
RE: BursaApk (Grabber)
(02-03-2015 06:15 AM)Ataurbd420 Wrote:  Google approved grabber site? surprise

Well the grabber only grabs free content and not paid ones so its not in violation of copyright so i think it should be fine.
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-05-2015, 05:58 AM
Post: #39
RE: BursaApk (Grabber)
But the content isn't your. As I know google only approve sites with quality content.
Has Google already approved your site?
or, you are just planning to use adsense on your site?
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-05-2015, 07:05 PM (This post was last modified: 02-05-2015 07:05 PM by achunk17.)
Post: #40
RE: BursaApk (Grabber)
in this case I do not need google

http://sellfy.com/achunk17
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)