Skip to content

Commit

Permalink
Update scraper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
maxvanceffer committed Jul 21, 2015
1 parent 98b1818 commit 90cafca
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scraper.php
Expand Up @@ -32,14 +32,17 @@

print_r(json_encode($post));

$posts[] = $post;
$result = scraperwiki::save_sqlite(array('id'), array(
'id' => $id,
'title' => $post['title'],
'image' => $post['image'],
'description' => $post['description'],
'keyword' => $post['keywords']
),'posts');

print_r(json_encode($result));
}

$result = scraperwiki::save_sqlite(array('id'), $posts, 'posts');

print_r(json_encode($result));
print_r(json_encode($posts));

// print_r($dom->find("table.list"));
//
// // Write out to the sqlite database using scraperwiki library
Expand Down

0 comments on commit 90cafca

Please sign in to comment.