Forwarded from Python Codes Basic to Advance (Mᴜᴋᴇsʜ)
Simple website using python #flask
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return '@Legend_coder'
if __name__ == "__main__":
app.run()
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
❤3👍1🔥1
Forwarded from Python Codes Basic to Advance (Mᴜᴋᴇsʜ)
Number Guessing Game Using python..
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
import random
def play_guessing_game():
print("Welcome to the Guessing Game!")
# by @mr_sukkun
# join : https://t.me/Python_Codes_Pro
secret_number = random.randint(1, 100)
attempts = 0
while True:
guess = int(input("Enter your guess (between 1 and 100): "))
attempts += 1
if guess < secret_number:
print("Too low! Try again.")
elif guess > secret_number:
print("Too high! Try again.")
else:
print(f"Congratulations! You've guessed the secret number {secret_number} in {attempts} attempts!")
break
play_guessing_game()
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
❤2🔥2
Forwarded from Python Codes Basic to Advance (Mᴜᴋᴇsʜ)
# KBC game using python
source code :
https://github.com/Noob-mukesh/Python-Projects/blob/main/KBCgame.py
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
source code :
https://github.com/Noob-mukesh/Python-Projects/blob/main/KBCgame.py
Join :- @Python_Codes_Pro
Support group :- @python_group_pro
❤2👍1🔥1🗿1
👍2🤔2🔥1
Pw lecture download using video id
Sample pw video url:-
https://d1d34p8vz63oiq.cloudfront.net/852e76ac-62a4-4ea7-bd7c-c0aa7e041d72/master.m3u8
Video id =852e76ac-62a4-4ea7-bd7c-c0aa7e041d72
Note :-
Sample pw video url:-
https://d1d34p8vz63oiq.cloudfront.net/852e76ac-62a4-4ea7-bd7c-c0aa7e041d72/master.m3u8
Video id =852e76ac-62a4-4ea7-bd7c-c0aa7e041d72
import requestsHere is pw sample extracted url :
url="https://mukesh-api.vercel.app/pw"
query=input("enter video id of pw ")
params = {"query":query}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
extracted_url = data.get("results", "default_value")
print(f"""Here is pw extracted url :--
{extracted_url}\ndownload using 1Dm app""")
else:print("Request was not successful. Status code:", response.status_code)
https://d1d34p8vz63oiq.cloudfront.net/d378b146-7bc8-49ea-991f-ef4b49044a9b/master.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMWQzNHA4dno2M29pcS5jbG91ZGZyb250Lm5ldC9kMzc4YjE0Ni03YmM4LTQ5ZWEtOTkxZi1lZjRiNDkwNDRhOWIvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcwODY0OTIyOH19fV19&Key-Pair-Id=APKAJBP3D6S2IU5JK4LQ&Signature=YJFWVlGovLjnVwZhkt5m~1f1yhAKmSsxZovOlffcsYLrH0oHcXL16F83MYSKGDlOrR-30snZZ3Q7dquDIU97PPr2tKq72-hK4osIwGziKl3sLaSiTHNqJX3YyQcpSb7mPLlEi8Bzg-Rs4BbDdOSYH84cjEI14aclSXEEvIDn-iMl~9-vERpF2Gsl9tMzOBjQVP-0PqfLIBllGR3rNY01yck9YpUQ26OED-BsVC2eWusBJ4qNIf5qHzQnQ7KYGa1gQKr6Xj0HZEBIkFKK5cX~cz1kHiAksvhY6MqkeZ48Zv3n7rzcYO8puBnNqmT3kxf3HzLsXvbI3uJb7QgX-Q# Download using 1Dm app
Note :-
I do not support any illegal activities, including piracy. The information provided here is for educational purposes only. It is important to always respect copyright laws and obtain content through legal and authorized means.
❤4🔥3👍1
This media is not supported in your browser
VIEW IN TELEGRAM
👩💻 Wᴇʟᴄᴏᴍᴇ ᴛᴏ @CodesSnippet! 🚀
Jᴏɪɴ ᴜs ғᴏʀ ᴅᴀɪʟʏ sɴɪᴘᴘᴇᴛs ᴏғ ᴄᴏᴅɪɴɢ 🧩 ᴋɴᴏᴡʟᴇᴅɢᴇ! 💻💡
Hᴇʀᴇ, ʏᴏᴜ'ʟʟ ғɪɴᴅ 👀 ʙɪᴛᴇ-sɪᴢᴇᴅ ᴘɪᴇᴄᴇs ᴏғ ᴄᴏᴅᴇ, 🔥 ᴘʀᴏɢʀᴀᴍᴍɪɴɢ ᴛɪᴘs, ᴀɴᴅ ᴛʀɪᴄᴋs ᴛᴏ ʟᴇᴠᴇʟ ᴜᴘ ʏᴏᴜʀ ᴄᴏᴅɪɴɢ sᴋɪʟʟs! 💪💻
Sᴛᴀʏ ᴜᴘᴅᴀᴛᴇᴅ ᴏɴ ᴛʜᴇ ʟᴀᴛᴇsᴛ ᴛʀᴇɴᴅs ɪɴ ᴛʜᴇ ᴛᴇᴄʜ ᴡᴏʀʟᴅ ᴀɴᴅ ᴇɴɢᴀɢᴇ ᴡɪᴛʜ ғᴇʟʟᴏᴡ ᴄᴏᴅᴇʀs 🤝 ɪɴ ᴏᴜʀ ᴠɪʙʀᴀɴᴛ ᴄᴏᴍᴍᴜɴɪᴛʏ! 🌐💬
Lᴇᴛ's ᴄʀᴀᴄᴋ ᴛʜᴇ ᴄᴏᴅɪɴɢ 🚪 ᴛᴏɢᴇᴛʜᴇʀ ᴀɴᴅ ʙʀɪɴɢ ʏᴏᴜʀ ᴘʀᴏJᴇᴄᴛs ᴛᴏ ʟɪғᴇ!
#CodeSnippet
#ProgrammingFun
Jᴏɪɴ ᴜs :- @CodesSnippet
Jᴏɪɴ ᴜs ғᴏʀ ᴅᴀɪʟʏ sɴɪᴘᴘᴇᴛs ᴏғ ᴄᴏᴅɪɴɢ 🧩 ᴋɴᴏᴡʟᴇᴅɢᴇ! 💻💡
Hᴇʀᴇ, ʏᴏᴜ'ʟʟ ғɪɴᴅ 👀 ʙɪᴛᴇ-sɪᴢᴇᴅ ᴘɪᴇᴄᴇs ᴏғ ᴄᴏᴅᴇ, 🔥 ᴘʀᴏɢʀᴀᴍᴍɪɴɢ ᴛɪᴘs, ᴀɴᴅ ᴛʀɪᴄᴋs ᴛᴏ ʟᴇᴠᴇʟ ᴜᴘ ʏᴏᴜʀ ᴄᴏᴅɪɴɢ sᴋɪʟʟs! 💪💻
Sᴛᴀʏ ᴜᴘᴅᴀᴛᴇᴅ ᴏɴ ᴛʜᴇ ʟᴀᴛᴇsᴛ ᴛʀᴇɴᴅs ɪɴ ᴛʜᴇ ᴛᴇᴄʜ ᴡᴏʀʟᴅ ᴀɴᴅ ᴇɴɢᴀɢᴇ ᴡɪᴛʜ ғᴇʟʟᴏᴡ ᴄᴏᴅᴇʀs 🤝 ɪɴ ᴏᴜʀ ᴠɪʙʀᴀɴᴛ ᴄᴏᴍᴍᴜɴɪᴛʏ! 🌐💬
Lᴇᴛ's ᴄʀᴀᴄᴋ ᴛʜᴇ ᴄᴏᴅɪɴɢ 🚪 ᴛᴏɢᴇᴛʜᴇʀ ᴀɴᴅ ʙʀɪɴɢ ʏᴏᴜʀ ᴘʀᴏJᴇᴄᴛs ᴛᴏ ʟɪғᴇ!
#CodeSnippet
#ProgrammingFun
Jᴏɪɴ ᴜs :- @CodesSnippet
❤3🔥1
Search hd image from unsplash using mukesh api
#CodeSnippet
#ProgrammingFun
Language:
Jᴏɪɴ ᴜs :- @CodesSnippet
import requests
ask = input("query to search image:- ")
class Unsplash:
base_url = "https://mukesh-api.vercel.app/"
"""search image from unsplash api by @mr_sukkun"""
def __init__(self, ask) -> None:
self.ask = ask
def unsplash_reply(self):
url = f"{self.base_url}unsplash?query={self.ask}"
response = requests.get(url)
if response.status_code == 200:
return response.json()
else:
return {"error": "Failed to fetch data"}
x = Unsplash(ask)
print(x.unsplash_reply())
#CodeSnippet
#ProgrammingFun
Language:
PythonJᴏɪɴ ᴜs :- @CodesSnippet
❤2👍2🔥1👏1😁1
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (Mᴜᴋᴇsʜ)
Scrap Image from bing using BeautifulSoup
sample response :
#CodeSnippet
#ProgrammingFun
Language:
Jᴏɪɴ ᴜs :- @CodesSnippet
import requests
from bs4 import BeautifulSoup as BSP
def split_url(url):
return url.split('&')[0]
def get_image_urls(search_query):
url = f"https://cn.bing.com/images/search?q={search_query}&first=1&cw=1177&ch=678"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
}
rss = requests.get(url, headers=headers)
soup = BSP(rss.content, "html.parser")
all_img = []
for img in soup.find_all('img'):
img_url = img.get('src2')
if img_url and img_url.startswith('https://tse2.mm.bing.net/'):
img_url = split_url(img_url)
all_img.append(img_url)
return all_img
print(get_image_urls("cat"))
sample response :
['https://tse2.mm.bing.net/th?q=Cat+Portrait', ...']
#CodeSnippet
#ProgrammingFun
Language:
PythonJᴏɪɴ ᴜs :- @CodesSnippet
❤2👍1🔥1🥰1👏1🤔1
Forwarded from Python Codes Basic to Advance (Mᴜᴋᴇsʜ)
Looking for Udemy courses with 100% off coupon codes? Then you're in the right place. All you need to do is sign-up in Udemy and enroll for the course and you will have it FREE FOREVER with certificate.
Need Udemy API ? 💀
Will be posted on 100 Subscribers on @CodesSnippet channel
Join Now : @CodesSnippet 🥀
Support group :- @python_group_pro
Sample response
{ "category": "coding",
"courseLink": "https://www.udemy.com/course/learn-python-programming-with-jafricode-tutorials/?couponCode=07FA1B16A696A564ECD2"...}❤3🔥2👍1🥰1
New Advance Command Added
Use /udemy command in @Adventure_Robot to receive Udemy Course in Free .
Click on Yes to Subscribe udemy Course so that bot will automatically send u course every after 5 minutes to unsubscribe click on No.
Bot Username:- @Adventure_Robot
By: @Mr_sukkun
Use /udemy command in @Adventure_Robot to receive Udemy Course in Free .
Click on Yes to Subscribe udemy Course so that bot will automatically send u course every after 5 minutes to unsubscribe click on No.
Bot Username:- @Adventure_Robot
By: @Mr_sukkun
👍2👏2❤1🔥1
˹ᴍʀ sᴜᴋᴋᴜɴ˼
New Advance Command Added Use /udemy command in @Adventure_Robot to receive Udemy Course in Free . Click on Yes to Subscribe udemy Course so that bot will automatically send u course every after 5 minutes to unsubscribe click on No. Bot Username:- @Adventure_Robot…
Want Source of this feature dm
Price :300 inr💀👍
Price :300 inr💀👍
🔥2❤1🥰1👏1
This media is not supported in your browser
VIEW IN TELEGRAM
🌟 For Sale 🌟
Smm Panel bot Source code Available!
Price : 5 K INR
This ready-to-use source code includes features like:
🔹 Telegram: Boost engagement with likes, views, poll votes, story views, and member management. Choose from 2 different plans to suit your needs.
🔹 Instagram: Increase likes and followers effortlessly.
🔹 YouTube: Enhance your YouTube presence with likes, views, subscribers, and watch time.
🔹 Force Channel: Drive traffic and visibility to your channels.
🔹 Track ID: Monitor all activities easily.
🔹 Add Balance: Conveniently manage user balances.
🔹 And much more!
DM to buy source Code:
@Python_coderx
:
Smm Panel bot Source code Available!
Get your hands on this complete Social Media Marketing (SMM) panel source code, packed with powerful features to boost your online presence! 🚀
Price : 5 K INR
This ready-to-use source code includes features like:
🔹 Telegram: Boost engagement with likes, views, poll votes, story views, and member management. Choose from 2 different plans to suit your needs.
🔹 Instagram: Increase likes and followers effortlessly.
🔹 YouTube: Enhance your YouTube presence with likes, views, subscribers, and watch time.
🔹 Force Channel: Drive traffic and visibility to your channels.
🔹 Track ID: Monitor all activities easily.
🔹 Add Balance: Conveniently manage user balances.
🔹 And much more!
DM to buy source Code:
@Python_coderx
or for making
any type of custom bots
:
❤2👍1🔥1🥰1
PyPI
MukeshAPI
python api hub | MukeshAPI
❤2👍2🔥2⚡1👏1👨💻1
# Generate Chatgpt AI with the input text
with mode params:
sample response:
without mode
sample response:
for more visit : https://pypi.org/project/MukeshAPI/
pip install --upgrade MukeshAPI
with mode params:
# available modes are "girlfriend","anime","animev2","flirt","santa","elonmusk"
from MukeshAPI import api
response = api.chatgpt("hi babe",mode="girlfriend")
print(response)
sample response:
*whispers softly* Mmm... Hello, my love! 🤗 What brings you here today? Is there anything special on your mind? Or maybe you just wanted to see me and talk... feel free to share whatever's on your heart.
#
without mode
from MukeshAPI import api
response = api.chatgpt("hi babe")
print(response)
sample response:
Hello. How can I assist you today?By : @mr_sukkun
for more visit : https://pypi.org/project/MukeshAPI/
👍2🔥2❤1👏1
signup heruko using python
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By
from time import sleep
driver = webdriver.Firefox()
driver.get("https://signup.heroku.com/login?")
dropdown = driver.find_element(By.ID, "main_programming_language")
driver.find_element(By.NAME, "first_name").send_keys("coder")
driver.find_element(By.NAME, "last_name").send_keys("mukesh")
driver.find_element(By.NAME, "email").send_keys("mukesh@gmail.com")
driver.find_element(By.NAME, "company").send_keys("mukeshtech")
# Selecting country
dropdown_country = driver.find_element(By.ID, "self_declared_country")
select_country = Select(dropdown_country)
select_country.select_by_value("India")
# Selecting language
select_language = Select(dropdown)
select_language.select_by_value("python")
# Select the role
dropdown_role = driver.find_element(By.NAME, "role")
select_role = Select(dropdown_role)
select_role.select_by_value("student")
# g-recaptcha iframe
recaptcha_checkbox = driver.find_element(By.ID,"""g-recaptcha""")
recaptcha_checkbox.click()
driver.switch_to.default_content()
sleep(5)
driver.quit()
👍2❤1🔥1🥰1
˹ᴍʀ sᴜᴋᴋᴜɴ˼
signup heruko using python from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.webdriver.common.by import By from time import sleep driver = webdriver.Firefox() driver.get("https://signup.heroku.com/login?") dropdown…
last mai captcha fill na hoga kisi dev ko pata hai to comment kro
🔥1🥰1