Coder Social home page Coder Social logo

grab_packt's Issues

Packtpub paused the daily deals

Got this email several hours ago:

Whilst we finish getting ready for the reveal, we've temporarily paused Deal of the Day. Instead, every day we're giving you the chance to claim some free eBooks and today's free titles are all about web development.

And they are adding captcha in unregistered access.

I cant find the list of download links in this new free download program. I think it can only available from email they send.

More Accurate Crontab Hour

I think the correct hour in crontab is 25 0 * * *, if you are using UTC/BST timezone in your server. I have compared date output with countdown clock in packt's website, and conclude this solution.

Here is my crontab settings:
25 0 * * * /usr/bin/nodejs /home/user/grab_packt/server.js >> /tmp/cron_output

Cannot find module 'dotenv'

When I runned the "run.bat" file to test if this thing it's working I got this error:

`
C:\Users\Administrator\Documents\GitHub\grab_packt>run.bat
module.js:327
throw err;
^

Error: Cannot find module 'dotenv'
at Function.Module._resolveFilename module.js:325:15
at Function.Module._load module.js:276:25
at Module.require module.js:353:17
at require <internal/module.js:12:17>
at Object. <C:\Users\Administrator\Documents\GitHub\gran_pack\Server.js:1:63>
at Module._compile module.js:409:26
at Object.Module._extensions..js module.js:416:10
at Module.load module.js:343:32
at Function.Module._load module.js:441:10

C:\Users\Administrator\Documents\GitHub\grab_packt>
`
And that's all, output.txt it's also empty.

OS Information: Windows Server 2008 R2 Datacenter, Build 7601, x64, SP1
Node.js Information: MSI Installer, Current version: v4.4.7 (includes npm 2.15.8), nothing special done to it, just next, next, next, finish.

Any help?

Error: Cannot find module 'request'

You need to run npm install in the directory before running node server.js otherwise you get the following error (on Windows):

module.js:338
    throw err;
          ^
Error: Cannot find module 'request'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (c:\inetpub\wwwroot\grab_packt\server.js:1:77)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)

watch command throws error

From Step 3 Using Node:

watch -n 5000 --differences node server.js

Msg:

> Watching /Users/name/scripts/grab_packt
sh: server.js: command not found

Are you using this package?
https://github.com/mikeal/watch

If so I cannot find a reference to -n or --differences in the README.

node not found

when I

watch -n 5000 --difference node server.js

It says

sh: 1: node: not found

have I done something wrong?

Project just became obsolete

Since yesterday, Packt has stopped offering the free eBook of the day as part of their free learning programme. As of now, the same URL displays a page where you can sign up for the new deal: 10 days of free access to their entire catalog. As such, this software is no longer functional. I guess it would be best to update the README to reflect this.

Thanks for creating this. It was much appreciated.

This doesn't seem to be working

It was working until today and i've started getting this error...

----------- Packt Grab Started -----------
Request Error
----------- Packt Grab Done --------------

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.