Python Code Tutorials


articles/convert-html-to-pdf-in-python.jpg
How to Convert HTML to PDF in Python

Learn how you can convert HTML pages to PDF files from an HTML file, URL or even HTML content string using wkhtmltopdf tool and its pdfkit wrapper in Python.

articles/pretraining-bert-using-huggingface-transformers-in-python.jpg
How to Train BERT from Scratch using Transformers in Python

Learn how you can pretrain BERT and other transformers on the Masked Language Modeling (MLM) task on your custom dataset using Huggingface Transformers library in Python

articles/pdf-image-extractor-using-python.PNG
How to Extract Images from PDF in Python

Learn how to extract and save images from PDF files in Python using PyMuPDF and Pillow libraries.

articles/pdf-ocr.jpg
How to Extract Text from Images in PDF Files with Python

Learn how to leverage tesseract, OpenCV, PyMuPDF and many other libraries to extract text from images in PDF files with Python

articles/optical-character-recognition-python.PNG
Optical Character Recognition (OCR) in Python

Learn how to Use Tesseract OCR library and pytesseract wrapper for optical character recognition (OCR) to convert text in images into digital text in Python.

articles/steganography-python.PNG
Steganography: How to Hide Data in Images in Python

Learning how to hide secret data in images using Steganography least significant bit technique in Python using OpenCV and Numpy.

articles/finetune-bert-transformers-in-python.PNG
How to Fine Tune BERT for Text Classification using Transformers in Python

Learn how to use HuggingFace transformers library to fine tune BERT and other transformer models for text classification task in Python.

articles/extract-media-metadata-in-python.jpg
How to Extract Video Metadata in Python

Learn how to extract video or audio file metadata in Python with the help of ffmpeg framework and its ffmpeg-python wrapper.

articles/sql-injection-vulnerability-scanner-in-python.PNG
How to Build a SQL Injection Scanner in Python

Learn how to write a simple Python script to detect SQL Injection vulnerability on web applications using requests and BeautifulSoup in Python.

articles/image-transformation-using-opencv-in-python.PNG
Image Transformations using OpenCV in Python

Learn how to perform perspective image transformation techniques such as image translation, reflection, rotation, scaling, shearing and cropping using OpenCV library in Python.

articles/convert-pdf-to-docx-in-python.jpg
How to Convert PDF to Docx in Python

Learn how you can use pdf2docx library to convert PDF files to docx word files in Python

articles/weather_extractor.jpg
How to Extract Weather Data from Google in Python

Scraping Google weather search page to extract useful information such as current weather, temperature, next days' weather and much more in Python using requests and Beautiful Soup.

articles/compress-and-resize-images-in-python.jpg
How to Compress Images in Python

Learn how to reduce image file size by compressing and resizing the image using Pillow library in Python.

articles/currency-converter-in-python.jpg
How to Make a Currency Converter in Python

Learn how to make a real-time currency converter using different ways and from various sources such as xe, yahoo finance, xrates and Fixer API in Python.

articles/xss-vulnerability-scanner-python.PNG
How to Build an XSS Vulnerability Scanner in Python

Building a Python script that detects XSS vulnerability in web pages using requests and BeautifulSoup.

articles/disconnected_from_wifi.jpg
How to Disconnect Devices from Wi-Fi using Scapy in Python

Forcing devices to disconnect from a network by sending deauthentication frames continuously using Scapy library in Python, this is called deauthentication attack.