DEV Community

Toul
Toul

Posted on • Originally published at automatetheboringstuffwithgo.com

Chapters 8,9,10, and 11

Hello aspiring Gophers, it has been some time since I've updated this project.

My apologies as I've gone through several major life changes, the largest of which involved moving my young family to NYC, an ongoing process that has taken much of my energy.
The good news is the project is complete from the code side, the bad news is that it isn't from the writing side, and rather than keep you waiting, I'm going to share the code with you!

So, for those of you who've made it this far Chapter 8– a Congratulations is in order "Well, done! You've made it farther than 80% of readers".

To support you and the rest of your journey, I'm providing the remainder of the code and links to the projects so that you can have a look, run the code, and have it for reference in your budding career as a GoLang enthusiast.

Chapter 8 - File Wrangling

  1. Backing Up Files to a Zip
  2. Find Large Files on your Computer
  3. Rename the Date of Files

Chapter 9 - Excelling with GO

This is probably the most useful code for those in Corporate.
Starting with Excel

  1. Census Population Data
  2. Saving an Excel File
  3. Updating cells in a sheet
  4. Making a Multiplication table (think matrix manipulation)
  5. transform .txt file to Excel
  6. Transforming Excel file to .txt file

Chapter 10 - PDF Hero

  1. Getting Started
  2. Combining PDFs

Chapter 11 - Web Scraping

It is important to know that it is possible to programmatically surf the web and download data. The first code pieces show doing it using only HTTP request methods, and 'automating a browser' shows how to do so as if you were opening a browser on your computer and visiting the site.
You'll need to do such things from time to time when Websites make it challenging to scrape data.

  1. Basic Web Request
  2. Searching for Things
  3. Saving a web request response
  4. Downloading content
  5. Automating a browser
  6. Searching with Google

Wow! You've made it through all that code? Congratulations, again!

You may be thinking 'Now what'. I'd recommend trying to use a little bit of what you learned at work to automate things. You may be thinking 'How will I know what or when to automate' Well a wise dev mentor once told me "If you're doing it more than 3 times a week, then maybe that's something worth automating", does anything come to mind? If so then have a look through the book for some code inspiration or even for the most likely terms to Google.
Again, it has been a pleasure to support you on your journey so far, please do ask questions.

P.S.
If you want to get some opensource creds then maybe take a crack at writing for some of the remaining chapters, and make a Pull request on the GitHub repository.
It can be a way to get some dev cred for your resume if you're thinking about going into the field of programming or tech in general.

Sincerely,
Toul

Top comments (0)