Python Automation Cookbook

Explore the world of automation using Python recipes that will enhance your skills
 
 
Packt Publishing
  • 1. Auflage
  • |
  • erschienen am 27. September 2018
  • |
  • 398 Seiten
 
E-Book | PDF mit Adobe-DRM | Systemvoraussetzungen
E-Book | ePUB mit Adobe-DRM | Systemvoraussetzungen
978-1-78899-915-1 (ISBN)
 
Step-by-step instructions which take you through each program to automate monotonous tasks with Python 3.7Key FeaturesAutomate integral business processes such as report generation, email marketing, and lead generationBuild your first web application that scrapes data and accesses websites' APIsCreate graphic-rich charts, graphs, and maps using MatplotlibBook DescriptionHave you been doing the same old monotonous office work over and over again? Or have you been trying to find an easy way to make your life better by automating some of your repetitive tasks? Through a tried and tested approach, understand how to automate all the boring stuff using Python. The Python Automation Cookbook helps you develop a clear understanding of how to automate your business processes using Python, including detecting opportunities by scraping the web, analyzing information to generate automatic spreadsheets reports with graphs, and communicating with automatically generated emails. You'll learn how to get notifications via text messages and run tasks while your mind is focused on other important activities, followed by understanding how to scan documents such as resumes. Once you've gotten familiar with the fundamentals, you'll be introduced to the world of graphs, along with studying how to produce organized charts using Matplotlib. In addition to this, you'll gain in-depth knowledge of how to generate rich graphics showing relevant information. By the end of this book, you'll have refined your skills by attaining a sound understanding of how to identify and correct problems to produce superior and reliable systems.What you will learnGet to grips with scraping a website to detect changesSearch and process raw sales files to aggregate information in spreadsheetsExplore techniques to extract information from an Excel spreadsheet and generate exciting reports with graphsDiscover the techniques required to generate random, print-friendly codes to be used as single-use couponsAutomatically generate a marketing campaign, contacting the recipients over different channelsIdentify and implement precise solutionsWho this book is forThe Python Automation Cookbook is for you if you are a developer or anyone who wants to automate monotonous manual tasks related to fields such as finance, sales, and HR, among others.
weitere Ausgaben werden ermittelt
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.
  • Cover
  • Title Page
  • Copyright and Credits
  • Dedication
  • Packt Upsell
  • Contributors
  • Table of Contents
  • Preface
  • Chapter 1: Let Us Begin Our Automation Journey
  • Introduction
  • Creating a virtual environment
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Installing third-party packages
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Creating strings with formatted values
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Manipulating strings
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Extracting data from structured strings
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using a third-party tool-parse
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Introducing regular expressions
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Going deeper into regular expressions
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Adding command-line arguments
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 2: Automating Tasks Made Easy
  • Introduction
  • Preparing a task
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Setting up a cron job
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Capturing errors and problems
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Sending email notifications
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 3: Building Your First Web Scraping Application
  • Introduction
  • Downloading web pages
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Parsing HTML
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Crawling the web
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Subscribing to feeds
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Accessing web APIs
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Interacting with forms
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using Selenium for advanced interaction
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Accessing password-protected pages
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Speeding up web scraping
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 4: Searching and Reading Local Files
  • Introduction
  • Crawling and searching directories
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading text files
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Dealing with encodings
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading CSV files
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading log files
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading file metadata
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading images
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading PDF files
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading Word documents
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Scanning documents for a keyword
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 5: Generating Fantastic Reports
  • Introduction
  • Creating a simple report in plain text
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using templates for reports
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Formatting text in Markdown
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Writing a basic Word document
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Styling a Word document
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Generating structure in Word documents
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Adding pictures to Word documents
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Writing a simple PDF document
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Structuring a PDF
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Aggregating PDF reports
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Watermarking and encrypting a PDF
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 6: Fun with Spreadsheets
  • Introduction
  • Writing a CSV spreadsheet
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Updating the CSV files
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading an Excel spreadsheet
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Updating an Excel spreadsheet
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Creating new sheets on an Excel spreadsheet
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Creating charts in Excel
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Working with format in Excel
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Creating a macro in LibreOffice
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 7: Developing Stunning Graphs
  • Introduction
  • Plotting a simple sales graph
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Drawing stacked bars
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Plotting pie charts
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Displaying multiple lines
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Drawing a scatter plot
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Visualizing maps
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Adding legends and annotations
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Combining graphs
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Saving charts
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 8: Dealing with Communication Channels
  • Introduction
  • Working with email templates
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Sending an individual email
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Reading an email
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Adding subscribers to an email newsletter
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Sending notifications via email
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Producing SMS
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Receiving SMS
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Creating a Telegram bot
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 9: Why Not Automate Your Marketing Campaign?
  • Introduction
  • Detecting the opportunities
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Creating personalized coupon codes
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Sending a notification to the customer on their preferred channel
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Preparing sales information
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Generating a sales report
  • Getting Ready
  • How to do it...
  • How it works
  • There's more...
  • See also
  • Chapter 10: Debugging Techniques
  • Introduction
  • Learning Python interpreter basics
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Debugging through logging
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Debugging with breakpoints
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Improving your debugging skills
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Other Books You May Enjoy
  • Index

Dateiformat: PDF
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat PDF zeigt auf jeder Hardware eine Buchseite stets identisch an. Daher ist eine PDF auch für ein komplexes Layout geeignet, wie es bei Lehr- und Fachbüchern verwendet wird (Bilder, Tabellen, Spalten, Fußnoten). Bei kleinen Displays von E-Readern oder Smartphones sind PDF leider eher nervig, weil zu viel Scrollen notwendig ist. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Bitte beachten Sie bei der Verwendung der Lese-Software Adobe Digital Editions: wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Dateiformat: ePUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat ePUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Bitte beachten Sie bei der Verwendung der Lese-Software Adobe Digital Editions: wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

39,29 €
inkl. 7% MwSt.
Download / Einzel-Lizenz
PDF mit Adobe-DRM
siehe Systemvoraussetzungen
E-Book bestellen

26,99 €
inkl. 7% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe-DRM
siehe Systemvoraussetzungen
E-Book bestellen