上QQ阅读APP看书,第一时间看更新
Getting ready
We'll start by following a structure in which a main function will serve as the entry point, and all parameters are supplied to it.
This is the same the basic structure the was presented in the Adding command-line arguments recipe in Chapter 1, Let's Begin Our Automation Journey.
The definition of a main function will all the explicit arguments covers points 1 and 2. Point 3 is not difficult to achieve.
To improve point 2 and 5, we'll look at retrieving the configuration from a file and storing the result in another. Another option is to send a notification, such as an email, which will be covered later in this chapter.