Skip to content

Instantly share code, notes, and snippets.

@dayatz
Created June 7, 2015 12:53
Show Gist options
  • Select an option

  • Save dayatz/b4bffec4757305953be4 to your computer and use it in GitHub Desktop.

Select an option

Save dayatz/b4bffec4757305953be4 to your computer and use it in GitHub Desktop.

Revisions

  1. dayatz created this gist Jun 7, 2015.
    5 changes: 5 additions & 0 deletions checkPacktubFree.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    var scrap = require('scrap');

    scrap('https://www.packtpub.com/packt/offers/free-learning', function(err, $){
    console.log($('.dotd-title h2').text().trim());
    });