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.
- π¬ Demo
- π· Project Overview
- βοΈ How the Script Works
- π₯ Features
- π Technologies Used
- π Project Structure
- π CSV Dataset
- πΌ Project Screenshot
- β‘ Installation & Run
- π‘ Example Use Cases
- π License
- π€ Author
| Demo | Platform | Watch |
|---|---|---|
| πΌ LinkedIn Demo | βΆ Watch Demo |
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:
- Read website data from a CSV file
- Extract website name and link
- Generate a QR code for the link
- Save the QR code as an image file
All of this happens automatically with a single script.
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! β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Opens the CSV file
- Skips the header row
- Reads each line of data
- Extracts the website name and link
- Generates a QR code
- Saves the QR code image
This allows bulk QR code generation with minimal effort.
| 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 |
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 |
The CSV file contains website names and links.
Example format:
site_name,link
Google,https://google.com
YouTube,https://youtube.com
Facebook,https://facebook.compip install qrcode[pil]python qr_code_create.pyAfter running the script, QR code images will be generated automatically.
Example output files:
Google.jpg
YouTube.jpg
Facebook.jpg
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 |
This project is open source and free to use.

