Example #1
0
 /**
  * Process releases without a proper name
  */
 public function processOtherMiscCategory()
 {
     $p = null;
     if ($this->pdo->getSetting('updatecleanup') == 1) {
         $p = new Parsing(false, true, false);
         $p->cleanup();
     }
     if ($this->pdo->getSetting('updateparsing') == 1) {
         if ($p == null) {
             $p = new Parsing(false, true, false);
         }
         $p->process();
     }
     if ($this->pdo->getSetting('removespecial') == 1) {
         if ($p == null) {
             $p = new Parsing(false, true, false);
         }
         $p->removeSpecial();
     }
 }
Example #2
0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252">
<title>Insert title here</title>
</head>
<frameset>
    <frame>
    <frame>
    <noframes>
    <body>
    <p>This page uses frames. The current browser you are using does not support frames.</p>
    <?php 
require_once 'Parsing.php';
$parsing = new Parsing();
//creating object for parsing class
$sites = $parsing->getWebsites();
//get list of websits to be scraped
foreach ($sites as $site) {
    require_once 'Sites/' . $site . '.php';
    $siteObj = new $site();
    try {
        $siteData = $siteObj->getAllData();
        //get all the avilable data
    } catch (Exception $e) {
        echo "<pre>";
        print_r($e);
        echo "</pre>";
    }
}
echo "<pre>";
Example #3
0
<?php

require_once dirname(__FILE__) . '/../../www/config.php';
$echoonly = true;
$limittotoday = false;
$verbose = true;
$p = new Parsing($echoonly, $limittotoday, $verbose);
$p->cleanup();
Example #4
0
<?php

require_once dirname(__FILE__) . '/../../www/config.php';
$echoonly = false;
$limittotoday = false;
$verbose = true;
$p = new Parsing($echoonly, $limittotoday, $verbose);
$p->process();
 /**
  * Process releases without a proper name
  */
 public function processOtherMiscCategory()
 {
     $p = null;
     if ($this->site->updatecleanup == 1) {
         $p = new Parsing(false, true, false);
         $p->cleanup();
     }
     if ($this->site->updateparsing == 1) {
         if ($p == null) {
             $p = new Parsing(false, true, false);
         }
         $p->process();
     }
     if ($this->site->removespecial == 1) {
         if ($p == null) {
             $p = new Parsing(false, true, false);
         }
         $p->removeSpecial();
     }
 }
Example #6
0
<?php

require_once dirname(__FILE__) . '/../../www/config.php';
$echoonly = false;
$limitedtotoday = true;
$verbose = true;
$p = new Parsing($echoonly, $limitedtotoday, $verbose);
$p->removeSpecial();