Python track · Course 1

Python Basics for SEO

This course doesn't assume you can code. It teaches the basics through SEO data: you start with variables, lists, dictionaries, conditions, loops and functions, then move on to CSV and Excel files, and Pandas.

Start with lesson 1 →

Lessons

Lessons ready: 11
  1. 1Python Data Types and Variables (with SEO Examples)How to store a page's URL or title in Python, and the difference between text and a number.Start →
  2. 2Python Dictionary vs List (and Sets), with SEO ExamplesHow to hold a list of pages, and how to hold one page with all its data.Start →
  3. 3Python If Statement: If Else and Elif ExplainedHow to make Python tell a healthy page from a page with a problem.Start →
  4. 4Python For Loop and While Loop (with SEO Examples)How to run the same code over thousands of pages, with for, while, break and continue.Start →
  5. 5Python Functions: def, Parameters and returnHow to put a few instructions under one name and reuse them, with def, parameters and return.Start →
  6. 6Python Read File and Write to File (with SEO Examples)How to read URLs from a real file, and write the results to a new file instead of just printing them.Start →
  7. 7Python urlparse: How to Parse URLsHow to split any URL into its domain, path and query, and tell internal links from external ones automatically.Start →
  8. 8Python Read CSV and Write CSV with DictReaderHow to read crawl data from a CSV file by its columns, filter it, and save the result to a new file.Start →
  9. 9Pandas Tutorial for SEO: read_csv, merge and groupbyHow to treat crawl data as one table in Pandas: filter it, sort it and find missing values without writing a loop.Start →
  10. 10How to Think in Python to Solve an SEO ProblemBefore the final project: how to break a big problem into small steps, and tell code that runs from analysis that gets you the right answer.Start →
  11. 11Python SEO Analyzer: Build an SEO Audit ToolThe last lesson of the first course: build a complete program that reads a crawl and turns it into a set of ready SEO reports.Start →