Skip to content

Commit

Permalink
added phrases link
Browse files Browse the repository at this point in the history
:
  • Loading branch information
Doug Neale committed Sep 16, 2017
1 parent e06754e commit 1bd9802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.js
Expand Up @@ -41,11 +41,11 @@ function fetchPage(url, callback) {

function run(db) {
// Use request to read in pages.
fetchPage("https://morph.io", function (body) {
fetchPage("http://www.phrases.org.uk/meanings/phrases-and-sayings-list.html", function (body) {
// Use cheerio to find things in the page with css selectors.
var $ = cheerio.load(body);

var elements = $("div.media-body span.p-name").each(function () {
var elements = $("p.phrase-list a").each(function () {
var value = $(this).text().trim();
updateRow(db, value);
});
Expand Down

0 comments on commit 1bd9802

Please sign in to comment.