Skip to content

Commit e1bf460

Browse files
author
Julian Zimmermann
committed
Updated readme
1 parent 354340b commit e1bf460

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ Add this to your crontab to run the job daily at 9:
280280
```
281281

282282
### free ebook from the newsletter
283-
The script also downloads the free ebook from the weekly newsletter. The url (https://goo.gl/kUciut) is generated by an Google apps script which parses the mail. If you want to use your own source, just adapt url.bookFromNewsletter in the config. The url should point to an csv containing a single line with the url (no semicolon).
284-
You can also [clone the script](https://docs.google.com/spreadsheets/d/1jN5gV45uVkE0EEF4Nb-yVNfIr3o8OoiVveUZJRMiLFw) to use your own Gmail account. Just subscribe to the newsletter (found on the bottom of https://www.packtpub.com) and create a filter to tag your mails accordingly.
283+
The script also downloads the free ebook from the weekly packtpub newsletter. The URL (https://goo.gl/kUciut) is generated by an Google apps script (you can get the code [here](https://gist.github.com/juzim/af0ef80f1233de51614d88551514b0ad), if you want to see the actual script, please [clone the spreadsheet](https://docs.google.com/spreadsheets/d/1jN5gV45uVkE0EEF4Nb-yVNfIr3o8OoiVveUZJRMiLFw) and go to "tools > script editor") which parses the mail.
284+
To use your own source, just adapt url.bookFromNewsletter in the config. The URL should point to a file containing only the URL (no semicolons, HTML, JSON, etc).
285+
You can also [clone the spreadsheet](https://docs.google.com/spreadsheets/d/1jN5gV45uVkE0EEF4Nb-yVNfIr3o8OoiVveUZJRMiLFw) to use your own Gmail account. Just subscribe to the newsletter (found on the bottom of https://www.packtpub.com) and create a filter to tag your mails accordingly.
285286

286287

287288
### Development (only for spidering)

script/spider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def main():
9696
if args.notify:
9797
Notify(config, None, None, args.notify).sendError(e, 'daily')
9898

99-
lastNewsletterUrlPath = 'config/lastNewsletterUrl.csv'
99+
lastNewsletterUrlPath = 'config/lastNewsletterUrl'
100100
lastNewsletterUrl = None
101101

102102
if os.path.isfile(lastNewsletterUrlPath):

0 commit comments

Comments
 (0)