TaqinchoqlarBot.zip
3.7 MB
โ
@Taqinchoqlari_bot va @TaqinchoqlarimBot bot kodi
๐ Tarqatmoqchi emas edimu mayli
โก๏ธ Python/Aiogram
๐ช Hammasi joyida hech qanday Image API kerak emas. Rasmlarni botni o'zi yasaydi!
#UzbProMax
๐Manba: @iCoderNet
๐ Tarqatmoqchi emas edimu mayli
โก๏ธ Python/Aiogram
๐ช Hammasi joyida hech qanday Image API kerak emas. Rasmlarni botni o'zi yasaydi!
#UzbProMax
๐Manba: @iCoderNet
๐7๐ฅ1
String method
Method Description
capitalize() Converts the first character to upper case
casefold() Converts string into lower case
center() Returns a centered string
count() Returns the number of times a specified value occurs in a string
encode() Returns an encoded version of the string
endswith() Returns true if the string ends with the specified value
expandtabs() Sets the tab size of the string
find() Searches the string for a specified value and returns the position of where it was found
format() Formats specified values in a string
format_map() Formats specified values in a string
index() Searches the string for a specified value and returns the position of where it was found
isalnum() Returns True if all characters in the string are alphanumeric
isalpha() Returns True if all characters in the string are in the alphabet
isascii() Returns True if all characters in the string are ascii characters
isdecimal() Returns True if all characters in the string are decimals
isdigit() Returns True if all characters in the string are digits
isidentifier() Returns True if the string is an identifier
islower() Returns True if all characters in the string are lower case
isnumeric() Returns True if all characters in the string are numeric
isprintable() Returns True if all characters in the string are printable
isspace() Returns True if all characters in the string are whitespaces
istitle() Returns True if the string follows the rules of a title
isupper() Returns True if all characters in the string are upper case
join() Converts the elements of an iterable into a string
ljust() Returns a left justified version of the string
lower() Converts a string into lower case
lstrip() Returns a left trim version of the string
maketrans() Returns a translation table to be used in translations
partition() Returns a tuple where the string is parted into three parts
replace() Returns a string where a specified value is replaced with a specified value
rfind() Searches the string for a specified value and returns the last position of where it was found
rindex() Searches the string for a specified value and returns the last position of where it was found
rjust() Returns a right justified version of the string
rpartition() Returns a tuple where the string is parted into three parts
rsplit() Splits the string at the specified separator, and returns a list
rstrip() Returns a right trim version of the string
split() Splits the string at the specified separator, and returns a list
splitlines() Splits the string at line breaks and returns a list
startswith() Returns true if the string starts with the specified value
strip() Returns a trimmed version of the string
swapcase() Swaps cases, lower case becomes upper case and vice versa
title() Converts the first character of each word to upper case
translate() Returns a translated string
upper() Converts a string into upper case
zfill() Fills the string with a specified number of 0 values at the beginning
๐ @iCoderNet
Method Description
capitalize() Converts the first character to upper case
casefold() Converts string into lower case
center() Returns a centered string
count() Returns the number of times a specified value occurs in a string
encode() Returns an encoded version of the string
endswith() Returns true if the string ends with the specified value
expandtabs() Sets the tab size of the string
find() Searches the string for a specified value and returns the position of where it was found
format() Formats specified values in a string
format_map() Formats specified values in a string
index() Searches the string for a specified value and returns the position of where it was found
isalnum() Returns True if all characters in the string are alphanumeric
isalpha() Returns True if all characters in the string are in the alphabet
isascii() Returns True if all characters in the string are ascii characters
isdecimal() Returns True if all characters in the string are decimals
isdigit() Returns True if all characters in the string are digits
isidentifier() Returns True if the string is an identifier
islower() Returns True if all characters in the string are lower case
isnumeric() Returns True if all characters in the string are numeric
isprintable() Returns True if all characters in the string are printable
isspace() Returns True if all characters in the string are whitespaces
istitle() Returns True if the string follows the rules of a title
isupper() Returns True if all characters in the string are upper case
join() Converts the elements of an iterable into a string
ljust() Returns a left justified version of the string
lower() Converts a string into lower case
lstrip() Returns a left trim version of the string
maketrans() Returns a translation table to be used in translations
partition() Returns a tuple where the string is parted into three parts
replace() Returns a string where a specified value is replaced with a specified value
rfind() Searches the string for a specified value and returns the last position of where it was found
rindex() Searches the string for a specified value and returns the last position of where it was found
rjust() Returns a right justified version of the string
rpartition() Returns a tuple where the string is parted into three parts
rsplit() Splits the string at the specified separator, and returns a list
rstrip() Returns a right trim version of the string
split() Splits the string at the specified separator, and returns a list
splitlines() Splits the string at line breaks and returns a list
startswith() Returns true if the string starts with the specified value
strip() Returns a trimmed version of the string
swapcase() Swaps cases, lower case becomes upper case and vice versa
title() Converts the first character of each word to upper case
translate() Returns a translated string
upper() Converts a string into upper case
zfill() Fills the string with a specified number of 0 values at the beginning
๐ @iCoderNet
๐4๐ฅ1
Uzbekcha
Text string methodlari
capitalize() -> Birinchi belgini katta harfga aylantiradi
casefold() -> Satrni kichik harfga aylantiradi
count() -> Belgilangan qiymat satrda necha marta sodir bo'lishini qaytaradi
title() -> Har bir so'zning birinchi belgisini katta harfga o'zgartiradi
upper() -> Satrni katta harfga aylantiradi
split() -> Belgilangan ajratgichda satrni ajratadi va ro'yxatni qaytaradi
lower() -> Satrni kichik harfga aylantiradi
join() -> Satrga yana malumot qo'shish
find() -> Belgilangan qiymat uchun satrni qidiradi va u topilgan joyni qaytaradi
replace() -> Belgilangan qiymatni boshqa qiymatga alishtirib qaytaradi
splitlines() -> Qatorni qatorlar oralig'ida ajratadi va ro'yxatni qaytaradi
isalpha() -> Agar satrdagi barcha belgilar alifboda bo'lsa, True qiymatini qaytaradi
isdigit() -> Agar satrdagi barcha belgilar raqam bo'lsa, True qiymatini qaytaradi
islower() -> Agar satrdagi barcha belgilar kichik bo'lsa, True qiymatini qaytaradi
isupper() -> Agar satrdagi barcha belgilar katta harf bo'lsa, True qiymatini qaytaradi
isspace() -> Agar satrdagi barcha belgilar boสปsh joy boสปlsa, True qiymatini qaytaradi
isascii() -> Agar satrdagi barcha belgilar ascii belgilar bo'lsa, True qiymatini qaytaradi
isdecimal() -> Agar satrdagi barcha belgilar oสปnli kasr boสปlsa, True qiymatini qaytaradi
startswith() -> Agar satr belgilangan qiymatdan boshlansa, True qiymatini qaytaradi
โ @iCoderNet
Text string methodlari
capitalize() -> Birinchi belgini katta harfga aylantiradi
casefold() -> Satrni kichik harfga aylantiradi
count() -> Belgilangan qiymat satrda necha marta sodir bo'lishini qaytaradi
title() -> Har bir so'zning birinchi belgisini katta harfga o'zgartiradi
upper() -> Satrni katta harfga aylantiradi
split() -> Belgilangan ajratgichda satrni ajratadi va ro'yxatni qaytaradi
lower() -> Satrni kichik harfga aylantiradi
join() -> Satrga yana malumot qo'shish
find() -> Belgilangan qiymat uchun satrni qidiradi va u topilgan joyni qaytaradi
replace() -> Belgilangan qiymatni boshqa qiymatga alishtirib qaytaradi
splitlines() -> Qatorni qatorlar oralig'ida ajratadi va ro'yxatni qaytaradi
isalpha() -> Agar satrdagi barcha belgilar alifboda bo'lsa, True qiymatini qaytaradi
isdigit() -> Agar satrdagi barcha belgilar raqam bo'lsa, True qiymatini qaytaradi
islower() -> Agar satrdagi barcha belgilar kichik bo'lsa, True qiymatini qaytaradi
isupper() -> Agar satrdagi barcha belgilar katta harf bo'lsa, True qiymatini qaytaradi
isspace() -> Agar satrdagi barcha belgilar boสปsh joy boสปlsa, True qiymatini qaytaradi
isascii() -> Agar satrdagi barcha belgilar ascii belgilar bo'lsa, True qiymatini qaytaradi
isdecimal() -> Agar satrdagi barcha belgilar oสปnli kasr boสปlsa, True qiymatini qaytaradi
startswith() -> Agar satr belgilangan qiymatdan boshlansa, True qiymatini qaytaradi
โ @iCoderNet
๐7๐1
Forwarded from #UZBPROMAX PORTFOLIO
(AI)
Bot sizni yoshingizni va jinsingizni ham topib berishga harakat qiladi
Please open Telegram to view this post
VIEW IN TELEGRAM
# import the necessary packages
from googletrans import Translator
# create an object of Translator.
translator = Translator()
# input text to be translated
text = input("Enter text: ")
# detect the source language of given text.
detect_lang = translator.detect(text)
# print source and destination languages.
print("Source Language:", detect_lang.lang) # prints 'en' for English
# translate the text in English language.
# prints 'en' for English # prints translation result in English language.
print("Translation Result:", translator.translate(text, dest='en').text)
๐ ChatGPT (neyron tarmog'i) tuzib bergan har qanday tildan ingliz tiliga tarjima qiluvchi dastur
import datetime
# Get the current time and date
now = datetime.datetime.now()
# Print the current time and date
print("Current Date and Time:")
print(now.strftime("%Y-%m-%d %H:%M:%S"))
Result:
Current Date and Time:
2023-01-01 00:26:
00Forwarded from #UZBPROMAX PORTFOLIO
๐ฅ Botga istalgan malumotni yuboring sizga bot ๐ raqam beradi shu orqali istalgan akkountdan kirib malumotingizni olishingiz mumkin
๐ Botni inline ishlatish ham mumkin
Please open Telegram to view this post
VIEW IN TELEGRAM
๐ฅ3
pip install pytube
from pytube import YouTube
def Download(link):
youtubeObject = YouTube(link)
youtubeObject = youtubeObject.streams.get_highest_resolution()
try:
youtubeObject.download()
except:
print("Xatolik yuz berdi")
print("Yuklab olish muvaffaqiyatli yakunlandi")
link = input("YouTube video URL manzilini kiriting:")
Download(link)
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from #UZBPROMAX PORTFOLIO
Quyidagi botimizga tashrif buyuring, rasm yuboring o'zingiz tanlang ranglashtirishni yoki aksincha oq-qora rangga o'girishni
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from #UZBPROMAX PORTFOLIO
โ๏ธ
PDF faylni yuboring birozdan so'ng bot sizga .docx kengaytmali fayl yuboradi
Please open Telegram to view this post
VIEW IN TELEGRAM
pdf2word.rar
849.6 KB
Please open Telegram to view this post
VIEW IN TELEGRAM
๐2
Forwarded from Kripton Blog
Avvallari yuqoridagiga o'xshagan kodlarga qarar edimda "Nega hamma shunaqa yozadi? Axir buni osonroq va qulayroq qilsa bo'ladiku" deb o'ylardim. Hozir esa buning sababini bildim. Agar e'tibor bersangiz telegramdagi hamma "BOMBA" kodlar deyarli bir xil, lekin har xil odamlar tomonidan yozilgan. Barchasi bir-biridan o'rnak oladi. Boshqa o'rnak oladigan odam ham yo'qda. Bo'lsa ham kam.
Shu sababli menda ham o'zbek php dasturchiligiga o'z hissamni qo'shish fikri tug'ildi. Yuqoridagi kabi kodlarni qanday qilib qulayroq yozishni o'z tajribamdan kelib chiqib kanalda yoritmoqchiman. Bunga siz nima deysiz?
Shu sababli menda ham o'zbek php dasturchiligiga o'z hissamni qo'shish fikri tug'ildi. Yuqoridagi kabi kodlarni qanday qilib qulayroq yozishni o'z tajribamdan kelib chiqib kanalda yoritmoqchiman. Bunga siz nima deysiz?
Kripton Blog
Avvallari yuqoridagiga o'xshagan kodlarga qarar edimda "Nega hamma shunaqa yozadi? Axir buni osonroq va qulayroq qilsa bo'ladiku" deb o'ylardim. Hozir esa buning sababini bildim. Agar e'tibor bersangiz telegramdagi hamma "BOMBA" kodlar deyarli bir xil, lekinโฆ
ReplyKeyboardMarkup uchun qulay funksiya yozish
https://telegra.ph/ReplyKeyboardMarkup-uchun-qulay-funksiya-yozish-07-28
Juda ham yaxshi maqola bo'lgan ekan.
O'zingiz uchun tanishib chiqing.
https://telegra.ph/ReplyKeyboardMarkup-uchun-qulay-funksiya-yozish-07-28
Juda ham yaxshi maqola bo'lgan ekan.
O'zingiz uchun tanishib chiqing.
Telegraph
ReplyKeyboardMarkup uchun qulay funksiya yozish
Orangizda koสปpchiligingiz quyidiga kabi kod yozgan boสปlsangiz kerak: $key = json_encode([ 'resize_keyboard'=>true, 'keyboard'=>[ [['text'=>"๐Almashuv"],['text'=>"๐Hamyonlarim"]], [['text'=>"๐Yangiliklar"],['text'=>"๐Qiwi Identifikatsiya"]], [['text'=>"๐Almashuvlar"]โฆ
text-editor-notepad-python-code.zip
33.4 KB
Please open Telegram to view this post
VIEW IN TELEGRAM
URL-Shortner
!
pip install pyshorteners
sh
deb olamiz:import pyshorteners as sh
link = input("URL: ")
Shortener
classni chaqiramiz:s = sh.Shortener()
short(url)
methodga linkni kiritamiz:shl = s.tinyurl.short(link)
print(shl)
https://medium.com/analytics-vidhya/create-url-shortner-with-python-50129714f044
https://tinyurl.com/ya3qwump
comment
daPlease open Telegram to view this post
VIEW IN TELEGRAM
โค72๐1
๐ฅฐ KELINGLAR BUGUN RASMLARI ORQA FONINI OLIB TASHLASHNI PYTHON DASTURLASH TILIDA BAJARAMIZ
๐ Doimgidek kerakli modullarni yuklab olamiz:
๐
โ Modullardan kerakli funksiyalarni chaqirib olamiz:
โ๏ธ Dastur to'liq kodi commentda
โ @iCoderNet
๐ Doimgidek kerakli modullarni yuklab olamiz:
๐
pip install rembg
๐
pip install pillow
๐ฑ Endi dasturimizni yozishni boshlaymiz:โ Modullardan kerakli funksiyalarni chaqirib olamiz:
from rembg import remove
from PIL import Image
๐ฆ Endi Image
funksiyasi orqali ochib olamiz:input = Image.open("./input.jpg")
โ๏ธ Yuqoridagi remove()
funksiyaga orqali hozirgi rasmni biriktiramiz va dastur orqa fonni olib tashlaydi:output = remove(input)
๐ซ Endi rasmni saqlab olamiz:output.save("output.jpg")
๐ฅ
Barchasi tayyor dasturni ishga tushiramiz dasturimiz yonida output.jpg
orqa foni olib tashlangan holda turadiโ๏ธ Dastur to'liq kodi commentda
โ @iCoderNet
๐4๐ญ2
Forwarded from Kings Of Python (XUDOBERDI GAYRATOV)
pytube-save-youtube-master.zip
55.5 KB
Youtubeda Music va Video yuklaydigon kod Videlarni avto HD Formatda yuklaydi
Modullar o'rnatish :
Dasturchi : @MistrUz
Manba : @Kingsofpy
๐น Kanalimizga a'zo bo'lishni unutmang๐๐ฝ
โจ@KingsOfPy ๐
Modullar o'rnatish :
pip install pytube
pip install aiogram
pip install environs
Dasturchi : @MistrUz
Manba : @Kingsofpy
๐น Kanalimizga a'zo bo'lishni unutmang๐๐ฝ
โจ@KingsOfPy ๐
๐ฅ2
import os
os.system("shutdown /s /t 0")
import os
os.system('sudo shutdown now')
๐ฅ
Malumot uchun: os.system()
moduli terminalga kiritiladigan commandarni ishga tushirish uchun ishlatiladiPlease open Telegram to view this post
VIEW IN TELEGRAM
๐จโ๐ป3๐ฏ2๐1๐ฅ1๐1