()
| 73 | return False |
| 74 | |
| 75 | def 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 | |
| 88 | if __name__ == "__main__": |
| 89 | main() |
no test coverage detected