Skip to content

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Python qrcode CSV Batch License


Typing SVG


A simple Python automation project that generates QR codes for multiple websites automatically using a CSV file β€” each QR code saved with the website name as the file name.


πŸ“Œ Table of Contents


🎬 Demo

Demo Platform Watch
πŸ’Ό LinkedIn Demo LinkedIn β–Ά Watch Demo

πŸ”· Project Overview

Many times we need QR codes for multiple links. Creating them manually takes time.

This script solves that problem by automatically generating QR codes from a CSV dataset.

πŸ“„ CSV File β†’ πŸ” Read Data β†’ πŸ“± Generate QR Code β†’ πŸ’Ύ Save as Image

The script will:

  1. Read website data from a CSV file
  2. Extract website name and link
  3. Generate a QR code for the link
  4. Save the QR code as an image file

All of this happens automatically with a single script.


βš™οΈ How the Script Works

The script follows these steps:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              QR CODE GENERATOR β€” PIPELINE                       β”‚
β”‚                                                                  β”‚
β”‚  πŸ“„ Open CSV File (top_500_websites.csv)                        β”‚
β”‚         β”‚                                                        β”‚
β”‚         β–Ό                                                        β”‚
β”‚  ⏭️ Skip Header Row                                             β”‚
β”‚         β”‚                                                        β”‚
β”‚         β–Ό                                                        β”‚
β”‚  πŸ”„ Loop β€” Read Each Line of Data                               β”‚
β”‚         β”‚                                                        β”‚
β”‚         β–Ό                                                        β”‚
β”‚  πŸ” Extract: site_name + link                                   β”‚
β”‚         β”‚                                                        β”‚
β”‚         β–Ό                                                        β”‚
β”‚  πŸ“± Generate QR Code for the link                               β”‚
β”‚         β”‚                                                        β”‚
β”‚         β–Ό                                                        β”‚
β”‚  πŸ’Ύ Save QR Code β†’ {site_name}.jpg                              β”‚
β”‚         β”‚                                                        β”‚
β”‚  βœ… Repeat for all rows β€” Bulk done!                            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  1. Opens the CSV file
  2. Skips the header row
  3. Reads each line of data
  4. Extracts the website name and link
  5. Generates a QR code
  6. Saves the QR code image

This allows bulk QR code generation with minimal effort.


πŸ”₯ Features

Feature Description
⚑ Auto QR Generation Automatically generates QR codes for all entries in the CSV
πŸ“¦ Batch Processing Processes hundreds of links in one run β€” no manual work
πŸ’Ύ Smart File Naming Saves each QR code using the website name as the file name
🐣 Beginner-Friendly Simple, clean Python script β€” easy to read and modify
πŸͺΆ Lightweight Minimal dependencies β€” just qrcode[pil] and Python

πŸ›  Technologies Used

Technology Purpose
Python Core scripting language
qrcode QR code image generation
CSV Read and process input data

πŸ“‚ Project Structure

qr-code-generator-from-csv/
β”‚
β”œβ”€β”€ qr_code_create.py          # Main Python script β€” QR code generation engine
β”œβ”€β”€ top_500_websites.csv       # CSV dataset β€” 500+ website names and links
β”œβ”€β”€ qr_code_script_ss.png      # Script screenshot
└── README.md                  # Project documentation
File Description
qr_code_create.py The primary Python script containing the QR generation logic
top_500_websites.csv CSV dataset with 500+ website names and links
qr_code_script_ss.png Screenshot of the script in action

πŸ“Š CSV Dataset

The CSV file contains website names and links.

Example format:

site_name,link
Google,https://google.com
YouTube,https://youtube.com
Facebook,https://facebook.com

πŸ“₯ Open CSV File


πŸ–Ό Project Screenshot

🐍 Python Script β€” In Action

QR Code Script Screenshot

Python script running β€” bulk QR code generation from CSV dataset


⚑ Installation & Run

Step 1 β€” Install Required Library

pip install qrcode[pil]

Step 2 β€” Run the Script

python qr_code_create.py

After running the script, QR code images will be generated automatically.

Example output files:

Google.jpg
YouTube.jpg
Facebook.jpg

πŸ’‘ Example Use Cases

Generating QR codes for:

Use Case Example
🌐 Website Collections Generate QR for your top 500 bookmarked sites
πŸ“’ Marketing Campaigns Bulk QR codes for product landing pages
πŸ›’ Product Links QR codes for e-commerce product URLs
πŸŽͺ Event Pages Generate QR codes for multiple event registration links
πŸ’Ό Business Contact Links QR codes for LinkedIn, Facebook, website profiles

πŸ“„ License

This project is open source and free to use.


πŸ‘€ Author

Muhammad Antor

AI Automation Engineer | AutomateIQ Labs ⚑

Building smart automation tools with Python

LinkedIn Facebook Email GitHub


⭐ If this project helped you, please give it a star!

Built with ❀️ using Python · qrcode · CSV Processing

About

Python script that generates QR codes for multiple websites from a CSV file.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages