MCPcopy
hub / github.com/xlite-dev/Awesome-LLM-Inference / main

Function main

download_pdfs.py:75–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 return False
74
75def main():
76 try:
77 with open('README.md', 'r', encoding='utf-8') as file:
78 text = file.read()
79
80 pdf_info = extract_pdf_info(text)
81 print(f"A total of {len(pdf_info)} PDF links were matched.")
82
83 for title, link in tqdm(pdf_info, colour="blue"):
84 download_file(title, link)
85 except FileNotFoundError:
86 print("README.md file not found. Please ensure the file exists in the current working directory.")
87
88if __name__ == "__main__":
89 main()

Callers 1

download_pdfs.pyFile · 0.85

Calls 2

extract_pdf_infoFunction · 0.85
download_fileFunction · 0.85

Tested by

no test coverage detected