/Python-Automation-Cookbook-Second-Edition

Python-Automation-Cookbook-Second-Edition, published by Packt

Primary LanguagePythonMIT LicenseMIT

Python Automation Cookbook

Python Automation Cookbook

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

What is this book about?

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!

https://www.packtpub.com/

Instructions and Navigations

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.

Software and Hardware List

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.

Related products

Get to Know the Author

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.

Suggestions and Feedback

Click here if you have any feedback or suggestions.