Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliTeknik committed Feb 15, 2017
1 parent 84a6f4c commit 95c3f7c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions scraper.php
@@ -1,17 +1,18 @@
//
//
//$content = file_get_contents('http://www.sozcu.com.tr/kategori/yazarlar/');
//echo $content;
//

<?php
require 'scraperwiki.php';
require 'scraperwiki/simple_html_dom.php';
?>


<?php
require 'scraperwiki.php';
// A scraper for airline information from PHL.org
require 'scraperwiki/simple_html_dom.php';
$html_content = scraperwiki::scrape("http://www.sozcu.com.tr/kategori/yazarlar");
$html = str_get_html($html_content);
scraperwiki::sqliteexecute("drop table if exists swdata");
scraperwiki::save_var('html', $html);
$url="http://www.sozcu.com.tr/kategori/yazarlar";
$html = scraperWiki::scrape( $url );
$dom = new simple_html_dom();
$dom->load($html);

$record = array(
'html' => $tds[0]->plaintext
);
scraperwiki::save( array('html'), $record )

?>

0 comments on commit 95c3f7c

Please sign in to comment.