Coding Expert
Закрытый канал
6 504
Подписчики
Нет данных24 часа
Нет данных7 дней
Нет данных30 дней
Архив постов
6 504
Click on Join 'Coding Expert Bot' and use the bot to tell in the comment box what items should be added and changes should be made in the next update ❤️😊
6 504
❤️ Radhe Radhe Dosto ❤️
Coding Expert Bot New Update!!
See Update Post And Join This Channel 👇
https://t.me/codingexpertbotupdates/19
⚠️ Note : We will add more resources in the next update till then invite your friends and earn CE coins.
6 504
🖥 10 Advanced Python Scripts For Everyday Programming
1. SpeedTest with Python
# pip install pyspeedtest
# pip install speedtest
# pip install speedtest-cli
#method 1
import speedtest
speedTest = speedtest.Speedtest()
print(speedTest.get_best_server())
#Check download speed
print(speedTest.download())
#Check upload speed
print(speedTest.upload())
# Method 2
import pyspeedtest
st = pyspeedtest.SpeedTest()
st.ping()
st.download()
st.upload()
2. Search on Google
# pip install google
from googlesearch import search
query = "Medium.com"
for url in search(query):
print(url)
3. Make Web Bot
# pip install selenium
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
bot = webdriver.Chrome("chromedriver.exe")
bot.get('[http://www.google.com'](http://www.google.com'))
search = bot.find_element_by_name('q')
search.send_keys("@codedev101")
search.send_keys(Keys.RETURN)
time.sleep(5)
bot.quit()
4. Fetch Song Lyrics
# pip install lyricsgenius
import lyricsgenius
api_key = "xxxxxxxxxxxxxxxxxxxxx"
genius = lyricsgenius.Genius(api_key)
artist = genius.search_artist("Pop Smoke", max_songs=5,sort="title")
song = artist.song("100k On a Coupe")
print(song.lyrics)
5. Get Exif Data of Photos
# Get Exif of Photo
# Method 1
# pip install pillow
import PIL.Image
import PIL.ExifTags
img = PIL.Image.open("Img.jpg")
exif_data =
{
PIL.ExifTags.TAGS[i]: j
for i, j in img._getexif().items()
if i in PIL.ExifTags.TAGS
}
print(exif_data)
# Method 2
# pip install ExifRead
import exifread
filename = open(path_name, 'rb')
tags = exifread.process_file(filename)
print(tags)
6. OCR Text from Image
# pip install pytesseract
import pytesseract
from PIL import Image
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
t=Image.open("img.png")
text = pytesseract.image_to_string(t, config='')
print(text)
7. Convert Photo into Cartonize
# pip install opencv-python
import cv2
img = cv2.imread('img.jpg')
grayimg = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
grayimg = cv2.medianBlur(grayimg, 5)
edges = cv2.Laplacian(grayimg , cv2.CV_8U, ksize=5)
r,mask =cv2.threshold(edges,100,255,cv2.THRESH_BINARY_INV)
img2 = cv2.bitwise_and(img, img, mask=mask)
img2 = cv2.medianBlur(img2, 5)
cv2.imwrite("cartooned.jpg", mask)
8. Empty Recycle Bin
# pip install winshell
import winshell
try:
winshell.recycle_bin().empty(confirm=False, /show_progress=False, sound=True)
print("Recycle bin is emptied Now")
except:
print("Recycle bin already empty")
9. Python Image Enhancement
# pip install pillow
from PIL import Image,ImageFilter
from PIL import ImageEnhance
im = Image.open('img.jpg')
# Choose your filter
# add Hastag at start if you don't want to any filter below
en = ImageEnhance.Color(im)
en = ImageEnhance.Contrast(im)
en = ImageEnhance.Brightness(im)
en = ImageEnhance.Sharpness(im)
# result
en.enhance(1.5).show("enhanced")
10. Get Window Version
# Window Version
import wmi
data = wmi.WMI()
for os_name in data.Win32_OperatingSystem():
print(os_name.Caption) # Microsoft Windows 11 Home
❤️ If You Want More Content Like This Then Join This Channel 👇
@codingexpert142
@codingexpert142
Give Reactions 😍❤️6 504
🥳 Mega Giveaway 🥳
🏆 Prizes
👉 CEH Course
👉 3 Paid Ebooks
👉 1 Blog Template
👉 100 Subscriber Telegram Channel
⚠️ Voting Rules
👉 minimum 100 votes needs to win
👉 whoever gets more votes will win
Voting Start : 12 Aug 9:00 Am
Voting End : 15 Aug 9:00 Am
✅ Giveaway On This Channel 👇
@codingexpert142
👇 Drop Your Name In This Bot 👇
@CodingExpertGiveawaysbot
6 504
🙏 Radhe Radhe 😊
Friends, I am making a new quiz, which one should I make? Tell me in the comments.
6 504
📩 Python Email Automation Script
import smtplib
from email.mime.text import MIMEText
sender_email = "your_email@example.com"
recipient_email = "recipient_email@example.com"
subject = "Automated Email"
message = "This is an automated email sent using Python."
# SMTP server configuration (example: Gmail)
smtp_server = "smtp.gmail.com"
smtp_port = 587
smtp_username = "your_username"
smtp_password = "your_password"
msg = MIMEText(message)
msg["Subject"] = subject
msg["From"] = sender_email
msg["To"] = recipient_email
try:
server = smtplib.SMTP(smtp_server, smtp_port)
server.starttls()
server.login(smtp_username, smtp_password)
server.sendmail(sender_email, recipient_email, msg.as_string())
print("Email sent successfully!")
except Exception as e:
print("Error sending email:", str(e))
finally:
server.quit()
❤️ If You Want More Content Like This Then Join This Channel 👇
@codingexpert142
@codingexpert142
Give Reactions 😍❤️6 504
I will give the complete course of CEH to everyone for free but first make me win in voting.
Have to collect 500 votes to win, get 500 votes done, CEH course will be given for free
Vote For Coding Expert 👇
https://t.me/CryptoTokenGiveaways/34
6 504
👋 Hello Guys
Vote for the coding expert, 500 votes needed friends please go vote fast
6 504
The last poll is being made, if anyone wants to participate, do so.
Giveaway On This Channel
Send name here
6 504
Repost from TG-BOT CODERX
Making Last Poll for LTC Coin Giveaway. Only those people give their names who can collect 500 votes, the poll will be put at 7:00 PM.
Send name here 👇
@CryptoTokenGiveawayBot
6 504
Repost from TG-BOT CODERX
🥳 1 LTC Coin Giveaway 🥳
💲Today LTC Rate : ₹7,150.38
📅 Voting Time & Date 👇
Voting Start Date : 8 Aug 2023 , 9:00 AM
Voting End Date : 19 Aug 2023 , 9:00 AM
⚠️ Minimum 500 Votes Need To Win
✅ Giveaway On This Channel @CryptoTokenGiveaways
👇 Drop Your Name In This Bot 👇
@CryptoTokenGiveawayBot
6 504
+7
☁️ Cloud Computing Tutorial
❤️ If You Want More Content Like This Then Join This Channel 👇
@codingexpert142
@codingexpert142
Give Reactions 😍❤️
