diff --git a/generator.py b/generator.py
index d4076ad..15ef16d 100755
--- a/generator.py
+++ b/generator.py
@@ -4,7 +4,7 @@
html_tmpl = """
"""
-doc_source = "https://github.com/tldr-pages/tldr/archive/master.zip"
+doc_source = "https://github.com/tldr-pages/tldr/archive/main.zip"
docset_path = "tldrpages.docset"
doc_path_contents = docset_path + "/Contents/"
doc_path_resources = docset_path + "/Contents/Resources/"