This is the code repository for Python Automation Cookbook, published by Packt.
Explore the world of automation using Python recipes that will enhance your skills
Using a problem-solution-based approach, we'll show how you can automate all the boring stuff and let your computer do it for you instead of using the Python programming language. By the end of the book, you will have learned to identify problems and correct them to produce superior and reliable systems.
This book covers the following exciting features:
- Get to grips with scraping a website to detect changes
- Search and process raw sales files to aggregate information in spreadsheets
- Explore techniques to extract information from an Excel spreadsheet and generate exciting reports with graphs
- Discover the techniques required to generate random, print-friendly codes to be used as single-use coupons
- Automatically generate a marketing campaign, contacting the recipients over different channels
- Identify and implement precise solutions If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
# IMPORTS
from sale_log import SaleLog
def get_logs_from_file(shop, log_filename):
def main(log_dir, output_filename):
...
if __name__ == '__main__':
# PARSE COMMAND LINE ARGUMENTS AND CALL main()
Following is what you need for this book: Before reading this book, readers need to know the basics of the Python language. We do not assume that the reader is an expert in the language. The reader needs to know how to input commands in the command line (Terminal, Bash, or equivalent). To understand the code in this book, you need a text editor, which will enable you to read and edit the code. You can use an IDE that supports the Python language, such as PyCharm and PyDev—which you choose is up to you. Check out this link for ideas about IDEs: https://realpython.com/python-ides-code-editors-guide/.
With the following software and hardware list you can run all code files present in the book.
Chapter | Software required | OS required |
---|---|---|
1-10 | Python 3.7 https://www.python.org | Windows, macOS, and Linux (Any) |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Jaime Buelta has been a professional programmer and a full-time Python developer and has been exposed to a lot of different technologies over his career. He has developed software for a variety of fields and industries, including aerospace, networking and communications, industrial SCADA systems, video game online services, and finance services. As part of these companies, he worked closely with various areas, such as marketing, management, sales, and game design, helping the companies achieve to their goals. He is a strong proponent of automating everything and making computers do most of the heavy lifting so users can focus on the important stuff. He is currently living in Dublin, Ireland, and has been a regular speaker at PyCon Ireland.
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.