Posts

Convert Image to Sound using python | Simple Program | Beginner Project

      Convert Image to Sound using python | Simple Program | Beginner Project      Download -  https://github.com/UB-Mannheim/tesseract/wiki First Install Pytesseract application from above link  Install the required modules using PIP  while mapping the tesseract.exe check your system Program Files Path Keep your Image File in same directory  sample File.txt and sound.mp3 will automatically created in same directory #import modules from PIL import Image from gtts import gTTS import pytesseract import os from new import image_to_sound pytesseract.pytesseract.tesseract_cmd = r "C: \P rogram Files \T esseract-OCR \t esseract.exe" def convert_to_sound ( image ):     try :         open_image = Image.open(image)         text = pytesseract.image_to_string(open_image)         text_file = " " .join(text.split( " \n " ))         print (text_file) ...

Simple Automation using python Price Tracker Beginner Project

Image
  #Importing Libraries import requests import json #Define API url key = "https://api.binance.com/api/v3/ticker/price?symbol=" # List of cryptos to track coins = [ "BTCUSDT" , "DOGEUSDT" , "LTCUSDT" ] j = 0 for i in coins:     url = key+coins[j]     data = requests.get(url)     data = data.json()         j = j+ 1     print ( f " { data[ 'symbol' ] } price is { data[ 'price' ] } " )

Send Email Using Python | Beginner Project | smtplib | Simple Project

Provide your email sender mail ID in variable  And create app-password (check the youtube for how to create app-password)  https://youtu.be/e8MTlDIj8Mc  #importing library import smtplib #Required for email sending email_sender = 'emailsender@mail.com' email_app_password = 'yourappcodehere' #Details of email email_from = email_sender email_to = [ 'emailreceiver@mail.com' ] email_subject = "Python project - Email" email_body = ( "hello there, \n\n "                 "you received email from python \n "                 " \n "                 "Thanks \n "                 "code endeavor" ) email_text = """ \     From: %s     To: %s     Subject: %s     %s """ % ( email_sender , "," . join ( email_to ), email_subject , email_body ) #Email server details try :    ...