Search code examples
pythonpypdf

How to Count number of pages of an online pdf in python?


I am analyzing NLP conferences. I need to extract number of pages from pdfs which are hosted online, using python. For example : The source of the pdf is "https://www.aclweb.org/anthology/E91-1002.pdf" The output should be 6.


Solution

  • I would scrape it and then extract the information with PyPdf2.