An efficient utility for swiftly generating WhatsApp direct links from contact numbers stored in .csv files or Excel spreadsheets!
Project description
WhatsappLinkGen
Overview
The WhatsappLinkGen Python package is designed to facilitate the generation of WhatsApp links from a .csv file. This tool is particularly useful for managing large contact lists obtained from services like Google Forms, enabling users to easily send messages, particularly for publicity purposes.
Installation
You can install this package via pip:
Usage
The package provides two main functions:
generateLinkFromCsv(input_csv, column_num, output_file_txt=None, country_code=None)
: This function takes a .csv file, an optional output text file, and a country code, and returns directly clickable WhatsApp links.
from whatsapplinkgen import generateLinkFromCsv
generateLinkFromCsv('contacts.csv', 0, 'output.txt', '91')
In this example:
'contacts.csv'
is the input .csv file.0
is the column number containing the contact numbers.'output.txt'
is the optional output file where the generated links will be stored.'91'
is the country code.
generateLinkFromNumber(contact_no, country_code=None)
: This function takes a contact number and an optional country code, and prints the directly clickable WhatsApp link.
from whatsapplinkgen import generateLinkFromNumber
generateLinkFromNumber('1234567890', '91')
In this example:
'1234567890'
is the contact number.'91'
is the country code.
Author
This package was created by Daivik Karbhari.
For any queries, you can reach out to daivikkarbhari01@gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file whatsapplinkgen-0.1-py3-none-any.whl
.
File metadata
- Download URL: whatsapplinkgen-0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040e251d230bbde676e48048028ac6aace56320045d04bbf9a6495567e88210d |
|
MD5 | c327686f94a7ed1f369e4b315e885a4a |
|
BLAKE2b-256 | 7f6156d131d79424cf7123fe67754a86411ddcaf8603567b55473ca6069a6569 |