draconar / grab_packt Goto Github PK
View Code? Open in Web Editor NEWGrab a book a day for free, from https://www.packtpub.com/packt/offers/free-learning
Grab a book a day for free, from https://www.packtpub.com/packt/offers/free-learning
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.
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
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?
Hi, How to run this as service in the background?
so when the server restart it start automatically
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)
Create a flag for the script that will download a log of all the books from your account.
The user should be able to specify what data they want in the log.
ie: book_name, author, etc
This python project has this feature:
https://github.com/igbt6/Packt-Publishing-Free-Learning
Create a flag for the script that will download all the books from your account.
This python project has this feature:
https://github.com/igbt6/Packt-Publishing-Free-Learning
Is there any problem lately?
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
.
when I
watch -n 5000 --difference node server.js
It says
sh: 1: node: not found
have I done something wrong?
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.
It was working until today and i've started getting this error...
----------- Packt Grab Started -----------
Request Error
----------- Packt Grab Done --------------
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.