Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Web Scraper Help

Featured Replies

Hello, my code is:

<?php

/* update your path accordingly */
//include (scraperstuff/simple_html_dom.php);

//$includeFile = file_get_contents(".../simple_html_dom.php");

//echo $includeFile;

include $_SERVER['DOCUMENT_ROOT'] . '/scraperstuff/simple_html_dom.php';

$search_term = "Frankfurt";

$url = "http://www.blahblah.com/germany/{$search_term}/sightseeing";

$html = file_get_html($url);

/*
Get all table rows having the id attribute named 'rhsline'.
As the list of sponsored links is in the 'ol' tag; as can be
seen from the DOM tree above; we use the 'children' function
on the $data object to get the sponsored links.
*/
$data =  $html->find('div[class=content]');



/*
 Make sure that sponsors ads are available,
 Some keywords do not have sponsor ads.
*/
if(isset($data[0]))
  echo $data[0]->children(1);



?>

I need some help removing links from the returned content. Cheers in advance!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.