books like automate the boring stuff with python code example
Example 1: automate the boring stuff with python
Just go to the following link:
https://web.bii.a-star.edu.sg/~liangzhu/2017/11/02/linuxcommandline/automatetheboringstuffwithpython_new.pdf
note that you will need to wait a few seconds before you can access it
Example 2: Automate the boring stuff with python
Install & Use Selenium