O documento discute como usar Python para automatizar tarefas repetitivas. Ele apresenta dois casos de estudo que usam Python para renovar livros emprestados automaticamente de uma biblioteca online e notificar usuários sobre novas legendas de séries de TV. O documento também mostra exemplos de código Python usando bibliotecas como BeautifulSoup, Mechanize e outras.
2. Using Python to Automate
Repetitive Tasks
Roteiro
• Por que py?
• Case of Study 1
• Motivação
• Objetivos
• Ferramentas
• Case of Study 2
• Motivação
• Objetivos
• Resultados
• Ferramentas
• Code
• Bonus
3. Por que Python?
• Simplicidade
• Legibilidade do Código
• Tempo
• Batteries Included
• PyPI(17484 packages)
4. Por que Python?
• Simplicidade
• Legibilidade do Código
• Tempo
• Batteries Included
• PyPI(17484 packages)
• Não é Java
7. Unicap-br
Objetivos
• Fazer o login no site da católica
• Receber dados dos livros emprestados
• Renovar livros
• Checar sucesso da renovação
• Renovar automaticamente com frequência Crontab
8. Unicap-br
Objetivos
• Fazer o login no site da católica
• Receber dados dos livros emprestados
• Renovar livros
• Checar sucesso da renovação
• Renovar automaticamente com frequência Crontab
9. Unicap-br
Objetivos
• Fazer o login no site da católica
• Receber dados dos livros emprestados
• Renovar livros
• Checar sucesso da renovação
• Renovar automaticamente com frequência Crontab
10. Unicap-br
Objetivos
• Fazer o login no site da católica
• Receber dados dos livros emprestados
• Renovar livros
• Checar sucesso da renovação
• Renovar automaticamente com frequência Crontab
11. Unicap-br
Objetivos
• Fazer o login no site da católica
• Receber dados dos livros emprestados
• Renovar livros
• Checar sucesso da renovação
• Renovar automaticamente com frequência Crontab
12. Unicap-br
Ferramentas
• BeautifulSoup: HTML/XML parser designed for quick turnaround
projects like screen-scraping
• Mechanize: Stateful programmatic web browsing in Python
13. Unicap-br
Ferramentas
• BeautifulSoup: HTML/XML parser designed for quick turnaround
projects like screen-scraping
• Mechanize: Stateful programmatic web browsing in Python
19. Ferramentas
• Python-twitter: A Python wrapper around the Twitter API
• bitlyapi: A very thin wrapper for the bit.ly API
• pynotify: Python bindings for libnotify(Desktop Notification Library)
• feedparser: Parse Atom and RSS feeds in Python
20. Ferramentas
• Python-twitter: A Python wrapper around the Twitter API
• bitlyapi: A very thin wrapper for the bit.ly API
• pynotify: Python bindings for libnotify(Desktop Notification Library)
• feedparser: Parse Atom and RSS feeds in Python
21. Ferramentas
• Python-twitter: A Python wrapper around the Twitter API
• bitlyapi: A very thin wrapper for the bit.ly API
• pynotify: Python bindings for libnotify(Desktop Notification Library)
• feedparser: Parse Atom and RSS feeds in Python
22. Ferramentas
• Python-twitter: A Python wrapper around the Twitter API
• bitlyapi: A very thin wrapper for the bit.ly API
• pynotify: Python bindings for libnotify(Desktop Notification Library)
• feedparser: Parse Atom and RSS feeds in Python