# How to Scrape all PDF files in a Website in Python # for get the pdf files or urlimport requests# for tree traversal scraping in webpagefrom bs4 import BeautifulSoup# for input and output operationsimport io# For getting information about the pdfsfrom PyPDF2 import PdfFileReader