-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a20ec5
commit 9e634b7
Showing
10 changed files
with
85 additions
and
129 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
require 'vendor/autoload.php'; | ||
use Tracy\Debugger; | ||
Debugger::enable(); | ||
|
||
$config = new \Mediashare\Entity\Config(); // Website Config | ||
$config->setVerbose(true); // Prompt verbose output | ||
// Url | ||
$url = new \Mediashare\Entity\Url('http://marquand.pro'); | ||
|
||
// Spider | ||
$spider = new \Mediashare\Spider($url, $config); | ||
$result = $spider->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
require 'vendor/autoload.php'; | ||
use Tracy\Debugger; | ||
Debugger::enable(); | ||
|
||
// Config | ||
$config = new \Mediashare\Entity\Config(); | ||
$config->setJson(true); // Prompt json response | ||
// Url | ||
$url = new \Mediashare\Entity\Url('http://marquand.pro'); | ||
// Spider | ||
$spider = new \Mediashare\Spider($url, $config); | ||
$result = $spider->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
require 'vendor/autoload.php'; | ||
use Tracy\Debugger; | ||
Debugger::enable(); | ||
|
||
$config = new \Mediashare\Entity\Config(); | ||
$config->addModules(['Links', 'Metadata']); // Select one or more modules to use with class name | ||
|
||
// Url | ||
$url = new \Mediashare\Entity\Url('http://marquand.pro'); | ||
|
||
// Spider | ||
$spider = new \Mediashare\Spider($url, $config); | ||
$result = $spider->run(); | ||
// var_dump($result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
require 'vendor/autoload.php'; | ||
use Tracy\Debugger; | ||
Debugger::enable(); | ||
|
||
$config = new \Mediashare\Entity\Config(); // Website Config | ||
$config->setRequires(['/images/', '/tags/']); // Path requires | ||
|
||
// Url | ||
$url = new \Mediashare\Entity\Url('http://marquand.pro'); | ||
|
||
// Spider | ||
$spider = new \Mediashare\Spider($url, $config); | ||
$result = $spider->run(); | ||
// var_dump($result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
require 'vendor/autoload.php'; | ||
// use Tracy\Debugger; | ||
// Debugger::enable(); | ||
|
||
$config = new \Mediashare\Entity\Config(); // Website Config | ||
$config->setId("Audit_marquand.pro"); // Id|Name report (uniqid() by default) | ||
$config->setWebspider(true); // Crawl all website | ||
$config->setRequires(['/projet']); // Path requires | ||
// $config->setExceptions(['/contact']); // Path exceptions | ||
// Directories | ||
$config->setReportsDir(__DIR__.'/reports/'); // Default reports path | ||
$config->setModulesDir(__DIR__.'/modules/'); // Default modules path | ||
// Prompt Console / Dump | ||
$config->setVerbose(true); // Prompt verbose output | ||
$config->setJson(false); // Prompt json output | ||
// Modules Activation | ||
$config->enableAllModule(false); // Enable all modules | ||
$config->addModules(['Links', 'Search', 'Metadata']);// Select one or more modules to use with class name | ||
$config->addVariables(['Search' => ['ces deux exchanges']]); // Inject this variables in modules | ||
|
||
// Url | ||
$url = new \Mediashare\Entity\Url('http://marquand.pro'); | ||
|
||
// Spider | ||
$spider = new \Mediashare\Spider($url, $config); | ||
$result = $spider->run(); | ||
// var_dump($result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters