How to Convert DOCX to PDF in Python
Here are three ways to convert DOCX to PDF in Python: Using docx2pdf Using unoconv with LibreOffice/OpenOffice Using python-docx and…
How to Delete Pages from PDF File using Python
Here are three ways to delete pages from a PDF using Python: Using pymupdf Using pypdf2 Using pdfrw For this…
How to Crop PDF Files with Python
Many scanned documents have unwanted borders or margins that will waste the page. Cropping allows us to focus on the…
How to Extract Text from XML File in Python
Here are four different ways to extract text from XML files in Python: Using “xml.etree.ElementTree” built-in module Using “lxml” (third-party library)…
How to Extract a Text from a PDF File in Python
Here are three ways to extract text from a PDF File in Python: Using the “PyMuPDF” library (For simple text…
How to Extract a Date from a String Using Python
Here are four ways to extract a date from a string or text in Python: Using regular expressions (regex) Using…
How to Extract Top-Level Domain (TLD) from URL in Python
Extracting the Top-level Domain (TLD) from a URL helps web filtering systems and security tools. You can categorize websites by…
How to Extract String from Between Quotations in Python
Here are four ways to extract a string between quotes in Python: Using a regular expression Using str.split() Using a…
How to Extract Email Address from Text in Python
Here are three ways to extract email addresses from a text in Python: Using simple regex Using complex regex Using…
How to Check If a String is a Valid Email Address in Python
Here are three ways to check if a string is a valid email address in Python: Using the “re” module Using…










