MCPcopy
hub / github.com/mbadry1/DeepLearning.ai-Summary / main

Function main

download.py:13–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def main():
14 home_link = "https://raw.githubusercontent.com/mbadry1/DeepLearning.ai-Summary/master/"
15 markdown_links = {
16 "Deeplearning.ai summary Homepage":
17 home_link + "Readme.md",
18 "01- Neural Networks and Deep Learning":
19 home_link + "1-%20Neural%20Networks%20and%20Deep%20Learning/Readme.md",
20 "02- Improving Deep Neural Networks Hyperparameter tuning, Regularization and Optimization":
21 home_link + "2-%20Improving%20Deep%20Neural%20Networks/Readme.md",
22 "03- Structuring Machine Learning Projects":
23 home_link + "3-%20Structuring%20Machine%20Learning%20Projects/Readme.md",
24 "04- Convolutional Neural Networks":
25 home_link + "4-%20Convolutional%20Neural%20Networks/Readme.md",
26 "05- Sequence Models":
27 home_link + "5-%20Sequence%20Models/Readme.md",
28 }
29
30 # Extracting pandoc version
31 print("pandoc_version:", pypandoc.get_pandoc_version())
32 print("pandoc_path:", pypandoc.get_pandoc_path())
33 print("\n")
34
35 # Starting downloading and converting
36 for key, value in markdown_links.items():
37 print("Converting", key)
38 try:
39 pypandoc.convert_file(
40 value,
41 "pdf",
42 extra_args=["--pdf-engine=xelatex", "-V", "geometry:margin=1.5cm"],
43 outputfile=(key + ".pdf")
44 )
45 except Exception as exc:
46 print("Converting", key, "failed:", exc)
47 continue
48 print("Converting", key, "completed")
49
50
51if __name__ == "__main__":

Callers 1

download.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected