diff --git a/example/README.md b/example/README.md index 74afa7f..890daca 100644 --- a/example/README.md +++ b/example/README.md @@ -6,6 +6,8 @@ Copia questa cartella nel tuo web server in modo che sia raggiungibile ad esempi http://localhost/example ` +Copia anche il file `example/config.php` nella root dello scraper, così da configurare l'URL e come filtri di ricerca ad ogni livello di profondità un semplice tag `` per il test. + Inserendo negli `$start_url` l'indirizzo sopra e avviando lo script, l'output dovrebbe essere: ``` diff --git a/example/index.html b/example/index.html new file mode 100644 index 0000000..810c3f6 --- /dev/null +++ b/example/index.html @@ -0,0 +1,2 @@ +Link 1
+Link 2 \ No newline at end of file diff --git a/example/pagina1/index.html b/example/pagina1/index.html new file mode 100644 index 0000000..0d9ed4d --- /dev/null +++ b/example/pagina1/index.html @@ -0,0 +1,3 @@ +Sublink 1
+Sublink 2
+Sublink 3
\ No newline at end of file diff --git a/example/pagina1/sub1.1/index.html b/example/pagina1/sub1.1/index.html new file mode 100644 index 0000000..990f126 --- /dev/null +++ b/example/pagina1/sub1.1/index.html @@ -0,0 +1,2 @@ +Subsublink 1
+Subsublink 2
\ No newline at end of file diff --git a/example/pagina2/index.html b/example/pagina2/index.html new file mode 100644 index 0000000..6e15a7e --- /dev/null +++ b/example/pagina2/index.html @@ -0,0 +1,3 @@ +Sublink 1
+Sublink 2
+Sublink 3
\ No newline at end of file