Solved

PHP Sctrapper

Posted on 2016-09-09
13
59 Views
Last Modified: 2016-09-12
Hi,

I cant make this code work, I'm using the simple dom scrapper, it should

1. grab all current live urls
2. use the simple html dom to find a set div on the page
3. grab the text within that div
4. print each one out on the page.

<?php
// example of how to use basic selector to retrieve HTML contents
include('simple_html_dom.php');
 
// grab the list of urls
$html = file_get_html('https://system.playtimenurseries.com/children/');

// find all link
foreach($html->find('a') as $e) {
$link = $e->href . '/invoices/2016/11';

foreach ($link as $p)
{
$html2 = file_get_html($p);

foreach($html2->find('div#gbar') as $i){
    echo $i->innertext . '<br>';
       }
    }
}
?>

Open in new window

0
Comment
Question by:pc-buddy
  • 8
  • 5
13 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
Maybe the failure is because of this?
401
0
 

Author Comment

by:pc-buddy
Comment Utility
HI Ray,

No Even when I unblock it fails

Warning: Invalid argument supplied for foreach() in /home/playtimenurserie/public_html/playtime_b/public/test/index.php on line 14
https://system.playtimenurseries.com/children/296/invoices/2016/11
Warning: Invalid argument supplied for foreach() in /home/playtimenurserie/public_html/playtime_b/public/test/index.php on line 14

Thanks
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
Line 14 does not contain a foreach() statement.  Are you sure you posted the correct code snippet?

Please either unblock the URL or use view source, copy / paste  the HTML document here, thanks.
0
 

Author Comment

by:pc-buddy
Comment Utility
Hi Ray,

the code above it all of it?

Simon
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
Please let me try this request again:
Please either unblock the URL or use view source, copy / paste  the HTML document here, thanks.
0
 

Author Comment

by:pc-buddy
Comment Utility
Hi Ray, sorry i'm not sure what you are asking for, the data behind the password protected area i cant unlock, i've posted all the code i'm using above, and the error so what extra html are we missing that you need ?

Thank Simon
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
Hi, Simon.  What I'm trying to get is a set of test data.  In this line of code, there is something in $html.  
$html = file_get_html('https://system.playtimenurseries.com/children/');

Open in new window


That something is the result of this function call:
file_get_html('https://system.playtimenurseries.com/children/');

Open in new window


I would like to see the full view source  of https://system.playtimenurseries.com/children/

If you cannot post the HTML document that exists at the URL, then please use var_export() and post the output here in the code snippet.
$html = file_get_html('https://system.playtimenurseries.com/children/');
var_export($html);

Open in new window

The original HTML document is what we really need, but if for some reason you cannot post that, then there is a chance we can work with the var_export() data.
0
 

Author Comment

by:pc-buddy
Comment Utility
Hi, I see :)

so I'm trying to pull all the active children like https://system.playtimenurseries.com/children/392, then add /invoices/2016/11 to the end so i can grab all the text from the div with id gbar and list them.

<!doctype html>
<html lang="en">
  <head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="/css/menu.css">
	<link href="/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="/css/BeatPicker.min.css"/>
    <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
		<meta charset="UTF-8">
	<title>Playtime Systems</title>
  </head>
  <body>
	<div class="container">
	  <div class="row">
	    <div class="col-md-3"><img src="/images/logo.png" width="169" height="170"></div>
	    <div class="col-md-6 text-center">
	      <h1>Playtime Nursery System</h1>
	      <p>Friday the 9th</p>
	    </div>
	  </div>
	  <div id='cssmenu'>
<div style="margin-right:10px"><form method="POST" action="https://system.playtimenurseries.com/search/results" accept-charset="UTF-8" class="form navbar-form navbar-right searchform"><input name="_token" type="hidden" value="O5MqgtvRJbpISyh2rd5RvfsNBHOLY6tPLEySNOwQ">
  
  
  <input required="required" class="form-control" placeholder="Search for a child..." name="search" type="text">
  
  <input class="btn btn-default" type="submit" value="Search">
  
  </form></div>
<ul>
    <li class='active'><a href='/nurseries'><span>Dashboard</span></a></li>
      <li class='has-sub'><a href='/children'><span>Children</span></a>
        <ul>
          <li><a href='/children/create'><span>Add Child</span></a></li>
        </ul>
      </li>
  
      <li class='has-sub'><a href='#'><span>Invoicing</span></a>
        <ul>
          <li><a href='#'><span>Up &amp; Coming Invoices</span></a></li>
          <li class='last'><a href='#'><span>Quickbooks Export</span></a></li>
        </ul>
      </li>
      <li class='last'><a href='#'><span>Financials</span></a></li>
      <li class='last'><a href='https://system.playtimenurseries.com/attendance'><span>Attendance</span></a></li>
  </ul>
</div>
<div class="clear"></div>	  
	  

<div class="row martop">
    <div class="col-md-4 martop">
      <div class="brd lrmar marbot">
          <div class="rtitle">Shepperton</div>
            <div class="txtpad">

                              <h4>Little Gems</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/296">Harry Barker-Davies</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/313">Samuel Barry</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/258">Thomas Bould</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/312">Mya Darmody</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/382">Isabella Esme Richardson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/351">Alexander Fewster</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/326">Jay Hanspal</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/381">Mya Kaur Ahdan</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/293">Sienna Lovelock</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/248">Santiago Salinas</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/358">Harrison Sikora</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/348">Zoe Steel</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/271">Abigail Tay</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/256">Christopher Trindall</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/304">Eva White</a>
              		</div>
                            	                <h4>Mini Tots</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/107">Noah Lucas</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/20">Evelyn Butter</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/360">Max Abbot</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/1">Dashiell Allen</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/329">Khadija Baluch</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/10">Livia Bosco</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/264">Aaron Bull</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/6">Katie Carman</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/27">Kiara Farahmand</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/55">Toby Green</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/92">Brooke Hinchliffe</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/322">Mathilda Jones</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/103">James Leonard</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/385">Hugh Morris</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/127">Gabriel Nicholls</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/134">Minnie Osborn</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/252">Gabriella Scott</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/292">Alice Webb</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/70">Lucy Weetman</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/71">Austin Wells</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/73">William Wheatley</a>
              		</div>
                            	                <h4>Little Boppers</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/19">Eleanor Butter</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/249">Casey Fulbrook</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/15">Henry Bucys</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/14">Samuel Collins</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/22">Ashvir Curtis</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/23">Reece Dadwal</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/250">Bonnie Doyle</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/62">Dylan Draper-Edwards</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/50">Charlotte Galloway</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/53">Etta Gray</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/56">Alex Greenwood</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/83">Myla-Rose Hamblin</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/84">Leo Hanspal</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/89">George Henderson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/317">Madison-Mae Herbert</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/91">Sophie Hill</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/93">Imogen Hobley-Renwick</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/95">Emma Hollis</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/98">Emily Jewess</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/100">Jayden Kavanagh</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/279">Charlie Jnr Kelly</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/102">Taylor Kirkham</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/350">Dominic Law</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/112">William McCann</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/114">Camden McIver</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/115">Mia McLaren</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/119">Charley Minton</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/355">Alfie Nethercott</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/340">Ronny O&#039;Mant</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/131">Oscar O&#039;Shea</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/133">Harry Offland</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/311">Noah Patras</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/138">Jake Paver</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/140">Mia Poore</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/38">Sofia Raccagni</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/36">Varesh Ratnam</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/31">Faith Reeve</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/361">Annelise Remice</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/63">Ellen Store</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/66">Blake Thornton</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/290">Zachary Timpson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/68">Jake Valcarcel</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/77">Freya Withers</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/314">Ela Yuksel</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/246">Kais Zouma</a>
              		</div>
                            	                <h4>Pre School</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/74">Leyla Emad</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/78">Josephine Wolczynski</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/85">Regan Hartnell</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/43">Lenna Scott</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/52">Joshua Goy</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/319">Edward Abate</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/2">Liberty Allen</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/4">Indigo Bannister</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/5">Olivia Barry</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/310">Elena Bassiri</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/228">Milan Bibic</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/8">Brianna Chambers</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/283">Gabrielle Charles-Obi</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/18">William Cooper</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/21">Aidan Creaner</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/25">Dylan Darmody</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/41">Arya Dhami</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/57">Jagnoor Dhawan</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/28">Sophie Fenner</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/44">Alexander Fischer</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/46">Florence Flory</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/359">Eva Gaillat-Herbert</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/49">Abigail Galloway</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/54">Alfie Grayson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/94">Jack Hobley-Renwick</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/269">Maddi Jacobs</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/335">Iyla Kancha</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/247">Leah Keane</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/101">Lara Keskes</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/104">Logan Knight</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/108">Ali Mansour</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/111">Omar Mansour</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/110">Marcel Marchlewski</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/116">Matilda McMiken</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/121">Emily Moreton</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/122">Luke Morley</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/123">Poppy Morris</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/352">Aydin Mulla</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/125">Mason Mullan</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/128">Ava O&#039;Donoghue</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/129">Conor O&#039;Leary</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/341">Riley O&#039;Mant</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/135">Maya Ososinska</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/137">Luca Patras</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/139">Iden Pike</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/33">Imogen Read</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/29">Connor Ritchie</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/39">Megan Salter</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/337">Henri Sherman-Clark</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/60">Felix Steel</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/61">Sam Stockton</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/272">Annabelle Tay</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/64">Isaac Thomas</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/72">Jessica Wetherall</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/75">Seth Wilkins</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/81">Jasmine Wren Roe</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/82">Lillie-Rose Wren Roe</a>
              		</div>
                            	                <h4>Not Started</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/323">Eleanor McCann</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/357">Jackson Flintoft</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/387">Charlie Parsons</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/396">Riley Freer-McBride</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/299">Janna Miskry</a>
              		</div>
                            	                <h4>Left</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/3">Oscar Arundel</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/7">Georgina Barton Smith</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/9">Edward Berry</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/11">Karl Chinyere</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/12">Christo Bosman</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/16">Lexie Cooper</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/17">Noah Butler</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/22">Ashvir Curtis</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/24">Miles Fahey</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/28">Sophie Fenner</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/30">Emmie Rivers</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/32">Freddie Read</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/35">Naomi Rasmussen</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/37">Sadie-Mae Rickerby</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/40">Evie Sandell</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/42">Zaina Satti</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/45">Harriet Flatman</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/46">Florence Flory</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/47">Charlie Foot</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/48">Aurora French</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/51">Gabriel Goodwin</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/58">Rocco-Jett Donnelly</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/59">Jessica Simms-Cato</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/61">Sam Stockton</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/65">Ryan Thomas</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/67">Daisy Thornton</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/69">Mollie Walsh</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/76">Rianne Etolue</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/79">Henry Wood</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/80">Alexander Ewan</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/86">Edith Hedger</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/87">Eliza Hedger</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/88">Ava Henderson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/90">Edward Hiley</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/96">Leo Holmes</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/97">Olivia Holmes</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/99">Albert Jones</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/104">Logan Knight</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/105">Ahrin Kotecha</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/106">Naisha Kukreja</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/109">Darik Mansour</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/113">Brayden McIver</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/117">Finley Merchant</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/118">Jasmine Millward</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/120">Zarah Mirza-Patel</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/124">Freddie Motley-Smith</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/128">Ava O&#039;Donoghue</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/130">Ruairi O&#039;Leary</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/132">Arianna Offland</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/136">Andrei Patras</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/251">Ben Healy</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/263">Ethan Trowles</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/278">Albie Gibbons</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/284">Anisha Singh</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/289">Will Anthony-Dyer</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/384">Aahil Aziz</a>
              		</div>
                            	 

          </div>

      </div>
  </div>
    <div class="col-md-4 martop">
      <div class="brd lrmar marbot">
          <div class="rtitle">Staines</div>
            <div class="txtpad">

                              <h4>Little Gems</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/294">Emilie Adegbaju</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/146">Pearl Allen</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/321">Cornelia Ampah</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/347">Theo Barratt</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/389">Matthew Bevan</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/307">Austin Blaszkowski</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/308">Leah Blaszkowski</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/342">Daisy Cooper</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/159">Matilda Darvill</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/362">Isla Eastwood</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/160">Lily Facey</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/170">Ava Henwood</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/363">Joshua Hinge</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/380">Hudson Jukes</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/175">Thomas LeMare</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/179">Alexander Matyas - Gadd</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/182">Zach Meherji</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/282">Nicolas Nalin</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/332">Rose Owczarek</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/367">Ivy Phillips</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/197">Isabelle Rogers</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/204">Harrison Sherman</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/209">Jack Stevens</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/211">Pearl Tracey</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/215">Evie Van Der Sloot</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/221">Jacob Watson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/224">Bastian Westoll-Green</a>
              		</div>
                            	                <h4>Little Boppers</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/148">Jacob Bradbeer-Dubery</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/143">Kabir Adharmi</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/144">Charlie Aldridge</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/345">Grace Barrett</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/147">Jacob Bevan</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/155">Freddie Clarke</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/166">Larissa Geach-Cooper</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/168">Lilia Grzeskowiak</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/171">Scarlett Hill</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/277">Ahrin Kotecha</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/172">Henryk Kowalczyk</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/262">Danvin Magar</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/344">Dominik Magusiak</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/178">Shreya Mannava</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/183">Sarah Meszaros</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/184">Tyler Mills</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/190">Xavier Parsons</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/303">Janvi Patel</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/266">Stanley Radford</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/265">Leo Sancese</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/200">Ben Seymour</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/201">Shiven Sharma</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/365">Tate Sheldrick</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/207">Mia Sisodiya</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/208">Poppy Smith</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/276">Felix Spilman</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/217">Abhilash Vutukuri</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/281">Morgan Walford</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/219">Oscar Ward</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/320">Jake Willis</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/223">Nadia Zatchij</a>
              		</div>
                            	                <h4>Pre School</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/194">Mia-Rae Rees</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/142">Marie Adegbaju</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/149">Harriet Breslin</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/152">Abigail Careless</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/153">Heidi Cefai-Gadea</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/318">Lewis Connelly</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/158">Evalyn Danialva-Smith</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/163">Poppy Flynn</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/165">Charlee Foreman</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/174">Oliver LeMare</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/177">Rebecca Madge</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/181">Joshua Meherji</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/388">Lucas Moales</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/185">Dhruv Nikhil</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/199">Rohan Sedov</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/203">Gracie Sheldrick</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/216">Ethan Vitorino</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/218">Kayla Ward</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/220">Bailey Watson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/222">Ava Westoll-Green</a>
              		</div>
                            	                <h4>Not Started</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/394">Maisie Clarke</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/327">Finnian Miller</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/366">Drew Arnold</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/386">Mason Bullen</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/157">Maxwell Coiffe</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/364">Laila Crook</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/156">James  Coiffe</a>
              		</div>
                            	                <h4>Left</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/145">Lily-Mae Allen</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/150">Dominic Brylewski</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/151">Isabella Cappiello</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/154">Sankhayan Chaudhuri</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/161">Armeen Faisal</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/162">Finley Faulkner</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/164">Sophia Ford</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/167">Caitlin Gomm</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/169">Wilbur Healey-Browne</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/173">James  Lacey</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/176">Joseph Levett</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/180">Josie Mckenna</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/186">Lily Owczarek</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/187">Nadia Paczkowska</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/188">Joseph Palmer</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/189">Charlotte Parkinson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/191">Max Philips</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/192">Grace Plummer</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/193">Charlie Power</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/195">Bailey-Rae Robinson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/196">Toby Rodham</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/198">Esme Scalia-Lazell</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/202">Scott Thomas</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/205">Lucy Tate</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/206">Liam Shoriwa</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/210">Isabella Stevenson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/212">Eleni Uzice</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/213">Dylan Strange</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/214">Akira Swanson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/280">Jack Want</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/300">Rishika Nath</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/305">Visvesh Muralitharan</a>
              		</div>
                            	 

          </div>

      </div>
  </div>
    <div class="col-md-4 martop">
      <div class="brd lrmar marbot">
          <div class="rtitle">Wandsworth</div>
            <div class="txtpad">

                              <h4>Little Gems</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/274">Joshua Abrokwa</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/331">Amirah-Lilly Ahmadi</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/395">Matthew Baker</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/338">Zachary Balikin</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/346">Elijah Evans</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/241">Crewe Francisco</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/275">Callum Linaker</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/244">Alexander Little</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/328">Edward Pope</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/291">Adyanth Ram</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/239">Billy Rudge</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/349">James Sterry</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/353">Lincoln Webber</a>
              		</div>
                            	                <h4>Mini Tots</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/240">Lane Stacey</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/227">Matilda Lilly Backlund-Tang</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/302">Valentina Da Silva</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/373">Zackary Dehiri</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/372">Samuel Doicela</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/298">Alvaro Gavela</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/371">Jacob Hamilton</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/255">Arturo Jones</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/370">Penelope Lebbern</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/235">David Livingston</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/234">Maya Misetela</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/354">Meghan Parker</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/233">Annie Parr</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/232">Amelie Pascoe</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/225">Marni Peppiatt</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/374">Eloise Thede</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/376">Mateo Waage-Nielsen</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/334">Raphael West</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/254">Lucas Winters</a>
              		</div>
                            	                <h4>Little Boppers</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/324">Hayley Bradley</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/261">Skye Kirkwood</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/236">Leo Linik</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/237">Timothy Linik</a>
              		</div>
                            	                <h4>Pre School</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/238">Xander Bos Toma</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/260">Stellan Kirkwood</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/226">Ella-Rose Massa</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/286">Claudia Roberts</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/267">Alfred Virgo</a>
              		</div>
                            	                <h4>Not Started</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/245">Isabel Padilla</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/297">Riley Edwards</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/301">Baby Dodds</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/316">Sebastian Pisani</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/325">Matias Ortega Hernandez</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/330">Dario Morganti</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/336">Dario Morganti</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/339">Isabel Kim</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/356">Baby Perossa</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/368">Maximilian Holmes</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/369">Amelia Bahrami</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/378">Roman Primus</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/379">Emma Adams</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/383">Matthew Baker</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/393">Jessica Riseborough</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/273">Julian Van Den Heijkant</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/391">Stella Herron</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/392">Phoebe Herron</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/377">Artem Gorshunov</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/390">Alexander Perry</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/242">Alicia Coppola</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/375">Dawud Mallik</a>
              		</div>
                            	                <h4>Left</h4>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/229">Ariana Zucolli</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/230">Joanna Zucolli</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/231">Joshua Tsaisa</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/243">Seth Sandy</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/253">Luca Governale</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/259">Isis Smith</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/270">Lauren Freijas Pinto</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/295">Rithanna Forson</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/315">Baxter Zee</a>
              		</div>
                              		<div>
                  		<a href="https://system.playtimenurseries.com/children/333">Nyah Neil</a>
              		</div>
                            	 

          </div>

      </div>
  </div>
  </div>

 
	</div>
	<script src="/js/jquery-1.11.0.min.js"></script>
	<script src="/js/bootstrap.min.js"></script> 
	<script src="/js/BeatPicker.min.js"></script> 
	<script src="/js/menu.js"></script> 
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
	  </body>
</html>

Open in new window

0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
I can get all the links (about 400 of them) by processing the code snippet you posted above, and the collection looks like this...
https://system.playtimenurseries.com/attendance/invoices/2016/11
https://system.playtimenurseries.com/children/296/invoices/2016/11
https://system.playtimenurseries.com/children/313/invoices/2016/11

Open in new window

But the problem is that each of these links is password protected, too, just like the main page.  To make any progress, I would need to be able to read these links using cURL with the authentication credentials included.  If you want me to try that, please send me the credentials via email at Ray.Paseur@Gmail.com.  I will obscure the credentials before I post any code samples here.
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
I am not going to leave this live on my server, since it can reveal personal information, so I'll just post the code snippet here.  The script as written is brittle and may need to be refactored.  It's a long-running, one-pass PHP job, and that is never a "very good thing."  This information should be captured and inserted into a database so that the script can be restarted if it fails part way through.  There should be more robust error handling, in case the remote server barks.  You might also want to be able to sort the list of objects by name or amount.  
<?php // demo/temp_pc_buddy.php
/**
 * https://www.experts-exchange.com/questions/28968767/PHP-Sctrapper.html#a41791474
 *
 * https://davidwalsh.name/php-notifications
 */
ini_set('display_errors', TRUE);
error_reporting(E_ALL);


Class StudentAccount
{
    public $url, $name, $amount;
}


Class GET_Response_Object
{
    public $href, $title, $http_code, $errno, $info, $document;

    public function __construct($href, $user, $pass, $get_array=[], $title=NULL)
    {
        // ACTIVATE THIS TO AVOID TIMEOUT FOR LONG RUNNING SCRIPT
        // set_time_limit(10);

        // STORE THE CALL INFORMATION
        $this->href  = $href;
        $this->title = $title;

        // PREPARE THE GET STRING
        $get_string = http_build_query($get_array);
        if ($get_string) $get_string = '?' . $get_string;

        // MAKE THE REQUEST
        if (!$doc = $this->my_curl($href, $user, $pass, $get_string))
        {
            // ACTIVATE THIS TO SEE THE ERRORS AS THEY OCCUR
            trigger_error("Errno: $this->errno; HTTP: $this->http_code; URL: $this->href", E_USER_WARNING);
        }
        return $doc;
    }

    protected function my_curl($url, $user, $pass, $get_string, $timeout=3)
    {
        // PREPARE THE CURL CALL
        $curl = curl_init();

        // HEADERS AND OPTIONS APPEAR TO BE A FIREFOX BROWSER REFERRED BY GOOGLE
        $header[] = "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
        $header[] = "Cache-Control: max-age=0";
        $header[] = "Connection: keep-alive";
        $header[] = "Keep-Alive: 300";
        $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
        $header[] = "Accept-Language: en-us,en;q=0.5";
        $header[] = "Pragma: "; // BROWSERS USUALLY LEAVE THIS BLANK

        // SET THE CURL OPTIONS - SEE http://php.net/manual/en/function.curl-setopt.php
        curl_setopt( $curl, CURLOPT_URL,            $url . $get_string  );
        curl_setopt( $curl, CURLOPT_USERAGENT,      'Mozilla/5.0 (Windows NT 6.1; rv:44.0) Gecko/20100101 Firefox/44.0'  );
        curl_setopt( $curl, CURLOPT_HTTPHEADER,     $header  );
        curl_setopt( $curl, CURLOPT_REFERER,        'http://www.google.com'  );
        curl_setopt( $curl, CURLOPT_ENCODING,       'gzip,deflate'  );
        curl_setopt( $curl, CURLOPT_AUTOREFERER,    TRUE  );
        curl_setopt( $curl, CURLOPT_RETURNTRANSFER, TRUE  );
        curl_setopt( $curl, CURLOPT_FOLLOWLOCATION, TRUE  );
        curl_setopt( $curl, CURLOPT_TIMEOUT,        $timeout  );
        curl_setopt( $curl, CURLOPT_HTTPAUTH,       CURLAUTH_ANY );
        curl_setopt( $curl, CURLOPT_USERPWD,        "$user:$pass" );

        curl_setopt( $curl, CURLOPT_VERBOSE,        TRUE   );
        curl_setopt( $curl, CURLOPT_FAILONERROR,    TRUE   );

        // SET THE LOCATION OF THE COOKIE JAR (THIS FILE WILL BE OVERWRITTEN)
        curl_setopt( $curl, CURLOPT_COOKIEFILE,     'cookie.txt' );
        curl_setopt( $curl, CURLOPT_COOKIEJAR,      'cookie.txt' );

        // IF USING SSL, THIS INFORMATION MAY BE IMPORTANT
        // http://php.net/manual/en/function.curl-setopt.php#110457
        // http://php.net/manual/en/function.curl-setopt.php#115993
        // http://php.net/manual/en/function.curl-setopt.php#113754
        // REDACTED IN 2015 curl_setopt( $curl, CURLOPT_SSLVERSION, 3 );
        curl_setopt( $curl, CURLOPT_SSL_VERIFYHOST, FALSE  );
        curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, FALSE  );

        // RUN THE CURL REQUEST AND GET THE RESULTS
        $this->document  = curl_exec($curl);
        $this->errno     = curl_errno($curl);
        $this->info      = curl_getinfo($curl);
        $this->http_code = $this->info['http_code'];
        curl_close($curl);

        // RETURN DOCUMENT SUCCESS SIGNAL
        return $this->document;
    }
}

// LOAD THE DOM PARSER
require_once('simplehtmldom_1_5/simple_html_dom.php');

// TRY THE REMOTE WEB SERVICE
$usr = '??';
$pwd = '??';
$url = 'https://system.playtimenurseries.com/children/';
$doc = new GET_Response_Object($url, $usr, $pwd);

// ON FAILURE
if (!$doc)
{
    var_dump($doc);
    trigger_error('cURL FAIL', E_USER_ERROR);
}

// ON SUCCESS
$htm = $doc->document;

// ACQUIRE THE HTML OBJECT FROM THE HTML STRING
$html = str_get_html($htm);

// FIND / FILTER LINKS THAT WE WANT TO FOLLOW AND COLLECT STUDENT ACCOUNT OBJECTS
$links = [];
foreach($html->find('a') as $e)
{
    $link = $e->href . '/invoices/2016/11';
    if (strpos($link, 'https:') !== 0) continue;
    if (strpos($link, 'attendance'))   continue;

    $sa = new StudentAccount;
    $sa->url = $link;
    $sa->name = $e->innertext;
    $sa->amount = NULL;

    $links[] = $sa;
}

// USE EACH STUDENT ACCOUNT OBJECT TO GET THE STUDENT DETAILS
foreach ($links as $key => $sa)
{
    // EXTEND SCRIPT LIFE, AVOID SERVER OVERLOAD
    set_time_limit(10);
    usleep(99999);

    // TRY THE REMOTE WEB SERVICE
    $doc = new GET_Response_Object($sa->url, $usr, $pwd);

    // ON FAILURE
    if (!$doc->document)
    {
        var_dump($doc);
        trigger_error("cURL FAIL: $url", E_USER_WARNING);
    }
    // ON SUCCESS
    else
    {
        $htm = $doc->document;
        $html = str_get_html($htm);

        // LOCATE THE AMOUNTS ?? COULD THERE BE MORE THAN ONE ??
        foreach($html->find('div#gbar') as $i)
        {
            $sa->amount .= $i->innertext . ' ';
            $links[$key] = $sa;

            // SHOW PROGRESS
            echo PHP_EOL . "$sa->name $sa->amount <br>";
        }
    }
}

// SHOW THE COLLECTED WORK PRODUCT
print_r($links);

Open in new window

Outputs something like:
Harry XXX £640.99 
Samuel XXX £412.92 
Thomas XXX £877.46 
Mya XXX £1257.22
// etc etc etc 

Open in new window

0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
Comment Utility
Not to belabor the point, but here's a slightly better version of the script -- better variable names and alphabetical listing of the individual students.
<?php // demo/temp_xxx.php
/**
 * https://www.experts-exchange.com/questions/28968767/PHP-Sctrapper.html#a41791474
 *
 * https://davidwalsh.name/php-notifications
 */
ini_set('display_errors', TRUE);
error_reporting(E_ALL);


Class StudentAccount
{
    public $url, $name, $order, $amount;
}


Class GET_Response_Object
{
    public $href, $title, $http_code, $errno, $info, $document;

    public function __construct($href, $user=NULL, $pass=NULL, $get_array=[], $title=NULL)
    {
        // ACTIVATE THIS TO AVOID TIMEOUT FOR LONG RUNNING SCRIPT
        // set_time_limit(10);

        // STORE THE CALL INFORMATION
        $this->href  = $href;
        $this->title = $title;

        // PREPARE THE GET STRING
        $get_string = http_build_query($get_array);
        if ($get_string) $get_string = '?' . $get_string;

        // MAKE THE REQUEST
        if (!$response = $this->my_curl($href, $user, $pass, $get_string))
        {
            // ACTIVATE THIS TO SEE THE ERRORS AS THEY OCCUR
            trigger_error("Errno: $this->errno; HTTP: $this->http_code; URL: $this->href", E_USER_WARNING);
        }
        else
        {
            return $response;
        }
    }

    protected function my_curl($url, $user, $pass, $get_string, $timeout=3)
    {
        // PREPARE THE CURL CALL
        $curl = curl_init();

        // HEADERS AND OPTIONS APPEAR TO BE A FIREFOX BROWSER REFERRED BY GOOGLE
        $header[] = "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
        $header[] = "Cache-Control: max-age=0";
        $header[] = "Connection: keep-alive";
        $header[] = "Keep-Alive: 300";
        $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
        $header[] = "Accept-Language: en-us,en;q=0.5";
        $header[] = "Pragma: "; // BROWSERS USUALLY LEAVE THIS BLANK

        // SET THE CURL OPTIONS - SEE http://php.net/manual/en/function.curl-setopt.php
        curl_setopt( $curl, CURLOPT_URL,            $url . $get_string  );
        curl_setopt( $curl, CURLOPT_USERAGENT,      'Mozilla/5.0 (Windows NT 6.1; rv:44.0) Gecko/20100101 Firefox/44.0'  );
        curl_setopt( $curl, CURLOPT_HTTPHEADER,     $header  );
        curl_setopt( $curl, CURLOPT_REFERER,        'http://www.google.com'  );
        curl_setopt( $curl, CURLOPT_ENCODING,       'gzip,deflate'  );
        curl_setopt( $curl, CURLOPT_AUTOREFERER,    TRUE  );
        curl_setopt( $curl, CURLOPT_RETURNTRANSFER, TRUE  );
        curl_setopt( $curl, CURLOPT_FOLLOWLOCATION, TRUE  );
        curl_setopt( $curl, CURLOPT_TIMEOUT,        $timeout  );
        curl_setopt( $curl, CURLOPT_HTTPAUTH,       CURLAUTH_ANY );
        curl_setopt( $curl, CURLOPT_USERPWD,        "$user:$pass" );

        curl_setopt( $curl, CURLOPT_VERBOSE,        TRUE   );
        curl_setopt( $curl, CURLOPT_FAILONERROR,    TRUE   );

        // SET THE LOCATION OF THE COOKIE JAR (THIS FILE WILL BE OVERWRITTEN)
        curl_setopt( $curl, CURLOPT_COOKIEFILE,     'cookie.txt' );
        curl_setopt( $curl, CURLOPT_COOKIEJAR,      'cookie.txt' );

        // IF USING SSL, THIS INFORMATION MAY BE IMPORTANT
        // http://php.net/manual/en/function.curl-setopt.php#110457
        // http://php.net/manual/en/function.curl-setopt.php#115993
        // http://php.net/manual/en/function.curl-setopt.php#113754
        // REDACTED IN 2015 curl_setopt( $curl, CURLOPT_SSLVERSION, 3 );
        curl_setopt( $curl, CURLOPT_SSL_VERIFYHOST, FALSE  );
        curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, FALSE  );

        // RUN THE CURL REQUEST AND GET THE RESULTS
        $this->document  = curl_exec($curl);
        $this->errno     = curl_errno($curl);
        $this->info      = curl_getinfo($curl);
        $this->http_code = $this->info['http_code'];
        curl_close($curl);

        return $this;
    }
}

// A USORT WRAPPER THAT USES A CLOSURE TO INJECT $key INTO THE FUNCTION SCOPE
function sort_by_property(&$items, $key)
{
    return uasort($items, function($a, $b) use ($key){
        return ($a->$key < $b->$key) ? -1 : 1;
    });
}


// LOAD THE DOM PARSER
require_once('simplehtmldom_1_5/simple_html_dom.php');

// TRY THE REMOTE WEB SERVICE
$usr = '??';
$pwd = '??';
$url = 'https://system.playtimenurseries.com/children/';
$obj = new GET_Response_Object($url, $usr, $pwd);

// ON FAILURE
if (!$htm = $obj->document)
{
    var_dump($obj);
    trigger_error("cURL FAIL: $url", E_USER_ERROR);
}

// ACQUIRE THE HTML OBJECT FROM THE HTML STRING
$html = str_get_html($htm);

// FIND / FILTER LINKS THAT WE WANT TO FOLLOW AND COLLECT STUDENT ACCOUNT OBJECTS
$links = [];
foreach($html->find('a') as $e)
{
    $link = $e->href . '/invoices/2016/11';
    if (strpos($link, 'https:') !== 0) continue;
    if (strpos($link, 'attendance'))   continue;

    $sa = new StudentAccount;
    $sa->url = $link;
    $sa->name = $e->innertext;
    $arr = explode(' ', trim($sa->name));
    $ln  = array_pop($arr);
    $sa->order = $ln . ' ' . implode(' ', $arr);
    $sa->amount = NULL;

    $links[] = $sa;
}

// SORT AND PRESERVE THE KEYS
sort_by_property($links, 'order');

// USE EACH STUDENT ACCOUNT OBJECT TO GET THE STUDENT DETAILS
foreach ($links as $key => $sa)
{
    // EXTEND SCRIPT LIFE, AVOID SERVER OVERLOAD
    set_time_limit(10);
    usleep(99999);

    // TRY THE REMOTE WEB SERVICE
    $obj = new GET_Response_Object($sa->url, $usr, $pwd);

    // ON FAILURE
    if (!$htm = $obj->document)
    {
        var_dump($obj);
        trigger_error("cURL FAIL: $sa->url", E_USER_WARNING);
        continue;
    }
    // ON SUCCESS
    else
    {
        $html = str_get_html($htm);

        // LOCATE THE AMOUNTS ?? COULD THERE BE MORE THAN ONE ??
        foreach($html->find('div#gbar') as $i)
        {
            $sa->amount .= $i->innertext . ' ';
            $links[$key] = $sa;

            // SHOW PROGRESS
            echo PHP_EOL . "$sa->name $sa->amount <br>";
        }
    }
}

// SHOW THE COLLECTED WORK PRODUCT
print_r($links);

Open in new window

0
 

Author Closing Comment

by:pc-buddy
Comment Utility
Amazing help, thank you Ray
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
You're welcome, Simon.  Glad to help!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now