Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GabrielRocha/WebCrawlerPacktPublishing
https://github.com/GabrielRocha/WebCrawlerPacktPublishing
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/GabrielRocha/WebCrawlerPacktPublishing
- Owner: GabrielRocha
- Created: 2016-01-14T20:18:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-15T01:37:00.000Z (over 7 years ago)
- Last Synced: 2024-07-24T13:59:23.536Z (4 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 18
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Web Crawler Packt Publishing
This Web Crawler is to check if the user already has the Free Book Day [Packt Publishing] and if you have not it is added automatically.
[Packt Publishing]:https://www.packtpub.com/packt/offers/free-learning
### Installation
```
$ pip install -r requirements.txt
```### Execution
Create a hidden file named **.packt_user.cfg** and add your credentials to PacktPublishing following the example:```
username
password
```Modify permission of file **.packt_user.cfg**, to only that user have acess.
```
$ chmod 760 .packt_user.cfg
```To run script
```
$ python packt_crawler.py
```### Cron
```
# echo "* * * * * root python /path_do_repositorio/WebCrawlerPacktPublishing/packt_crawler.py" > /etc/daily/packt_crawler
```#### Verify execution
```
$ grep CRON /var/log/syslog
```