Package: autosel
AutoselAutosel is a Python package that automates sending emails, Whatsapp text, images, videos, and audio messages along with other functionalities like creating a group and spam bot.Libraries Used: Selenium, gTTSMain FeaturesBoldingFunctionality in EmailsSpecific Parts of an Email can now be bolded usingautosel.Spam Botin WhatsappUsingautosel, we can send a message multiple times (spam) to a user(s).Audio Senderin WhatsappText messages can now be sent as voice clip usingautoselautomate sending all types of media in Whatsappin WhatsappUsingautosel, we can automate sending Text, Images, Videos, Documents, and Audio Clips.Group Creatorin WhatsappProcess of creating a group and adding participants, and sending invites is automated byautoselTable of ContentsPackage-nameMain FeaturesTable of ContentsPrerequisitesInstallationWhat Classes are present in this Library?Email ClassDescriptionWhat Methods Do we have?Importing and assigning Email classMethodsWhatsapp ClassDescriptionWhat Methods Do we have?Importing and assigning Email classMethodsPrerequisitesChrome DriverDownload the suitable version of your chrome driver fromherewhich is similar to the version of your Chrome browser. The Chrome version can be found inSettings/About ChromeSeleniumpip install seleniumgTTspip install gttsInstallationUsing PIPpip install autoselUsing Condaconda install autoselWhat Classes are present in this Library?EmailWhatsappEmail ClassA.  DescriptionThis Class automates the process of sending E-mails to multiple recipients.
Using the sender_mail and sender_password credentials as input along with mail_subject and mail_body as input, Mails can be sent toMultiple recipients individually.There's an additional functionality of Bolding the content in the body. This feature can be used by alternatively giving the texts in the mail_body list with normal and bold texts [ "Normal text1", "Bold Text 1", "Normal text 2", "Bold Text 2" ....]Note:To input Multiple lines of string, use triple quotes.It is advised to use organization-specific sender_email that (or) gmail that aren't created on this device to avoid security issues with Google verification.B. What Methods do we Offer?Email Classsend_mailsC. Importing and assigning Email classImporting theEmailClassfrom autosel import EmailAssignEmailClass to a Class Variable:The Email Sender Class takes inputs assender_email,sender_password,mail_subject,mail_bodyThe Bolding Functionality can be use in body of the Email by alternatively giving the texts inmail_bodyvariable as shown below.[ "Normal text1", "Bold Text 1", "Normal text 2", "Bold Text 2" ....]Input Parameters:sender_email: str, Mail ID of the sendersender_password: str, Password of the sendermail_subject: str, Subject of the Emailmail_body: list, List of stings alternatively given with Normal and bolding texts.var = Email(sender_email= "abc@gmail.com", sender_password= "12345678", mail_subject= "Hello World!", mail_body= ["""This is a Normal Text, ""","""This is a Bolded Text"""])D. Methodssend_mailsThis method automatically sends emails to the recipients.Mails can be sent toMultiple recipientsindividually by adding their names in theemailslist.Input Parameters:driver_path: str, Chrome Driver Address.emails: list, List of Emails to which emails are to be sent.var.send_mails(driver_path= "", emails= ["",""])Demo :To watch a quick demo, ClickhereWhatsapp ClassA. DescriptionB. What Methods Do we have?Whatsapp Classspam_botsend_textsend_imagesend_documentsend_audiocreate_groupclose_whatsappC. Importing and assigning Email classImporting the Whatsapp Classfrom autosel import WhatsappAssignWhatsappClass to a variableTo initialize the chrome driver and to login got whatsapp. The usage_data_directory is used to store the QR code information to avoid multiple scanning.Input Parameters :driver_address: str, Address of Chrome Driver.usage_data_directory: str, Stores data to help logging multiple times seamless by passing QR code.Code:var = Whatsapp(driver_address="", usage_data_directory= "")D. Methodsspam_botThis method is used to send repeated texts (Spam) to the same person.Messages can be sent toMultiple recipientsalso by the contact names innamelist.Input Parameters :name: list, Names of the person to whom these messages are to be sent.msg: str, Message.count: int, Number of Messages.Code :var.spam_bot(name= ["",""], msg= "", count=)Demo :To watch a quick demo, Clickheresend_textThis method is used to automatically send messages to the recipient.Multiple messagescan be sent by adding messages into themsglist.The same set of images, videos can be even sent toMultiple peopleby adding names into thenamelist.Input Parameters :name: list, List of all contacts to which it should be sent in string format.msg: str, Message to be sent.select: bool, Confirm if a particular command should be there on not. It has a Default Value trueCode :var.send_text(name= ["",""], msg= "")Demo :To watch a quick demo, Clickheresend_imageThis method is used to automatically send image or video to the recipient.Multiple Images, Videoscan be sent by adding the file address with extension in thefile_addresslist.The same set of images, videos can be even sent toMultiple peopleby adding names into thenamelist.Accepts all formats of image and videos.Input Parameters :name: list, List of all contacts to which it should be sent in string format.files_address: list, Contains strings of address of files to be sent stored in list.select: bool, Confirm if a particular command should be there on not. It has a Default Value trueCode :var.send_image(name= ["", ""], files_address= ["",""], select: bool = True)Demo :To watch a quick demo, Clickheresend_documentThis method is used to automatically send files as documents to the recipient.Multiple Documentscan also be sent to the recipient by adding the files address infile_addresslist.This same set of documents can be even sent toMultiple peopleby adding names into thenamelist.Accepts all formats.Input Parameters :name: list, List of all contacts to which document should be sent.files_address: list, Contains strings of address of files to be sent stored in list.select: bool, Confirm if a particular command should be there on not. It has a Default Value of trueCode :var.send_image(name= ["", ""], files_address= ["",""], select: bool = True)Demo :To watch a quick demo, Clickheresend_audioThis method converts the given message into an audio recording and will send to the recipient.The audio file can be sent to multiple recipients by adding recipients intonamelist.Input Parameters:name: list, List of all contacts to which it should be sent in string format.msg: str, Stores the message in string format.file_name: list, Name of the Audio File.file_dir: str, name of file directory.select: bool, Confirm if a particular command should be there on not. It has a Default Value of trueCode :var.send_audio(name= ["", ""], files_address= ["",""])Demo :To watch a quick demo, Clickherecreate_groupThis method is used to create a whatsapp group.Using the contact names given ingroup_listand group name ingroup_namethe whatsapp group is made.Input Parameters:group_list: list, Stores the list of names(str) to be added in group in a list.group_name: str, Name of the group.text_dir: str, This is an alternate way of giving the list of group members and the group name by storing in a .txt file. Each line in the text file denotes one contact name and teh name at the end of text file denote Group name. Default filename is take asgroup_name.txtin the project directoryCode :var.create_group(group_list= ["",""], group_name= "")Demo :To watch a quick demo, Clickhereclose_whatsappThis method is used to close the running chrome driver.Input Parameters:NoneCode :var.close_whatsapp()LicenseMITContactMade with <3 from unKNOWN-G