Exemple #1
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return 'https://flipboard.com/api/users/updateFeed?limit=0&sections=flipboard%2Fusername%252F' . urlencode($this->username) . '&wantsMetadata=true';
             break;
     }
     return parent::offsetGet($offset);
 }
Exemple #2
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=' . urlencode($this->q);
         case 'regexp':
             return '@estimatedResultCount":"([^"]+)"@i';
     }
     return parent::offsetGet($offset);
 }
Exemple #3
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return 'http://www.bing.com/search?q=' . urlencode($this->q) . '&go=&form=QBLH&filt=all&qs=n&sk=';
         case 'regexp':
             return '@<span.*class="sb_count">([\\d\\.\\,]+)@i';
     }
     return parent::offsetGet($offset);
 }
Exemple #4
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return 'http://www.lesercharts.de';
         case 'regexp':
             return '@<td class="rank">(\\d+)</td><td class="blog"><a href="[^"]+">' . preg_quote($this->name, '@') . '</a>@';
     }
     return parent::offsetGet($offset);
 }
Exemple #5
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return 'http://labs.ebuzzing.de/top-blogs/source/' . $this->id;
         case 'regexp':
             return '&class="info">([0-9\\.]+)&i';
     }
     return parent::offsetGet($offset);
 }
Exemple #6
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return 'http://klout.com/' . urlencode($this->username);
         case 'regexp':
             return '/<span class="score">(\\d+)<\\/span>/i';
     }
     return parent::offsetGet($offset);
 }
Exemple #7
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return sprintf('https://twitter.com/%s', urlencode($this->username));
         case 'regexp':
             return '@data-nav="followers".*title="([\\d\\.\\,]+)"@is';
     }
     return parent::offsetGet($offset);
 }
Exemple #8
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return 'http://www.sichtbarkeitsindex.de/' . preg_replace('@^www\\.@', '', $this->host) . '';
         case 'regexp':
             return '@<h3>([\\d,]+)<\\/h3>@';
     }
     return parent::offsetGet($offset);
 }
Exemple #9
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'regexp':
             return "@alt='Global rank icon'><strong class=\"metrics-data align-vmiddle\">([\\.\\,\\d]+)<\\/strong>@i";
             break;
         case 'url':
             return sprintf('http://www.alexa.com/siteinfo/%s', urlencode($this->host));
             break;
     }
     return parent::offsetGet($offset);
 }
Exemple #10
0
 public function offsetGet($offset)
 {
     switch ($offset) {
         case 'url':
             return sprintf('https://play.google.com/store/apps/details?id=%s&hl=%s', $this->bundleIdentifier, $this->country);
             break;
         case 'regexp':
             switch ($this->key) {
                 case 'userRatingCount':
                     return '/class=[\\"\']reviews-num[\\"\']>([\\d.]+)</is';
                     break;
                 case 'averageUserRating':
                     return '/class=[\\"\']score[\\"\']>([\\d,.]+)</is';
                     break;
             }
             break;
     }
     return parent::offsetGet($offset);
 }