Description stringlengths 9 105 | Link stringlengths 45 135 | Code stringlengths 10 26.8k | Test_Case stringlengths 9 202 | Merge stringlengths 63 27k |
|---|---|---|---|---|
Voting System Project Using Django Framework | https://www.geeksforgeeks.org/voting-system-project-using-django-framework/ | {% extends 'base.html' %}{% block content %}<a class ="btn btn-secondary btn-sm mb-3" href ="{% url 'polls:index' %}">Back To Polls</a><h1 class ="text-center mb-3">{{ question.question_text }}</h1>??????{% if error_message %}<p cla"alert alert-danger">????????????????????????<strong>{{ error_message }}</strong></p>???... |
#Output : pip install pipenv | Voting System Project Using Django Framework
{% extends 'base.html' %}{% block content %}<a class ="btn btn-secondary btn-sm mb-3" href ="{% url 'polls:index' %}">Back To Polls</a><h1 class ="text-center mb-3">{{ question.question_text }}</h1>??????{% if error_message %}<p cla"alert alert-danger">??????????????????????... |
Voting System Project Using Django Framework | https://www.geeksforgeeks.org/voting-system-project-using-django-framework/ | {% extends 'base.html' %}{% block content %}<h1 class ="mb-5 text-center">{{ question.question_text }}</h1>??????<ul cla"list-group mb-5">????????????????????????{% for choice in question.choice_set.all %}???"list-group-item">????????????????????????????????????????????????{{ cho"badge badge-success float-right">{{ cho... |
#Output : pip install pipenv | Voting System Project Using Django Framework
{% extends 'base.html' %}{% block content %}<h1 class ="mb-5 text-center">{{ question.question_text }}</h1>??????<ul cla"list-group mb-5">????????????????????????{% for choice in question.choice_set.all %}???"list-group-item">????????????????????????????????????????????????{... |
Voting System Project Using Django Framework | https://www.geeksforgeeks.org/voting-system-project-using-django-framework/ | <nav class ="navbar navbar-dark bg-primary mb-4">????????????????????"container">??????????????????????????"navbar-brand" href ="/">Pollster</a>???????????????????? |
#Output : pip install pipenv | Voting System Project Using Django Framework
<nav class ="navbar navbar-dark bg-primary mb-4">????????????????????"container">??????????????????????????"navbar-brand" href ="/">Pollster</a>????????????????????
#Output : pip install pipenv
[END] |
Voting System Project Using Django Framework | https://www.geeksforgeeks.org/voting-system-project-using-django-framework/ | <! DOCTYPE html><html lang ="en"><head>???????????????????"stylesheet" href ="https://stackpath.bootstrapcdn.com / bootstrap / 4.4.1 / css / bootstrap.min.css"????????????????integrity ="sha384-Vkoo8x4CGsO3 + Hhxv8T / Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin ="anonymous">????????????????????????<title>... |
#Output : pip install pipenv | Voting System Project Using Django Framework
<! DOCTYPE html><html lang ="en"><head>???????????????????"stylesheet" href ="https://stackpath.bootstrapcdn.com / bootstrap / 4.4.1 / css / bootstrap.min.css"????????????????integrity ="sha384-Vkoo8x4CGsO3 + Hhxv8T / Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin... |
Voting System Project Using Django Framework | https://www.geeksforgeeks.org/voting-system-project-using-django-framework/ | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, "pages / index.html") |
#Output : pip install pipenv | Voting System Project Using Django Framework
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, "pages / index.html")
#Output : pip install pipenv
[END] |
Voting System Project Using Django Framework | https://www.geeksforgeeks.org/voting-system-project-using-django-framework/ | from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
] |
#Output : pip install pipenv | Voting System Project Using Django Framework
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
]
#Output : pip install pipenv
[END] |
Voting System Project Using Django Framework | https://www.geeksforgeeks.org/voting-system-project-using-django-framework/ | {% extends 'base.html' %}{% block content %}??????<div cla"card text-center">????????????????????"card-body">????????????????????????????????????????????????<h1>Welcome To Pollster</h1>??????????????????????????????????????????????????????<p>T"btn btn-dark" href ="{% url 'polls:index' %}">??????????????????????????????... |
#Output : pip install pipenv | Voting System Project Using Django Framework
{% extends 'base.html' %}{% block content %}??????<div cla"card text-center">????????????????????"card-body">????????????????????????????????????????????????<h1>Welcome To Pollster</h1>??????????????????????????????????????????????????????<p>T"btn btn-dark" href ="{% url 'po... |
Voting System Project Using Django Framework | https://www.geeksforgeeks.org/voting-system-project-using-django-framework/ | from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path("", include("pages.urls")),
path("polls/", include("polls.urls")),
path("admin/", admin.site.urls),
] |
#Output : pip install pipenv | Voting System Project Using Django Framework
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path("", include("pages.urls")),
path("polls/", include("polls.urls")),
path("admin/", admin.site.urls),
]
#Output : pip install pipenv
[END] |
How to add Google reCAPTCHA to Django forms? | https://www.geeksforgeeks.org/how-to-add-google-recaptcha-to-django-forms/ | # forms.py
from django import forms
from captcha.fields import ReCaptchaField
from captcha.widgets import ReCaptchaV2Checkbox
class ContactForm(forms.Form):
email = forms.EmailField()
feedback = forms.CharField(widget=forms.Textarea)
captcha = ReCaptchaField(widget=ReCaptchaV2Checkbox) |
#Output : django-admin startproject dj_recaptcha | How to add Google reCAPTCHA to Django forms?
# forms.py
from django import forms
from captcha.fields import ReCaptchaField
from captcha.widgets import ReCaptchaV2Checkbox
class ContactForm(forms.Form):
email = forms.EmailField()
feedback = forms.CharField(widget=forms.Textarea)
captcha = ReCaptchaField(w... |
How to add Google reCAPTCHA to Django forms? | https://www.geeksforgeeks.org/how-to-add-google-recaptcha-to-django-forms/ | <!DOCTYPE html><html lang="en"><head>????????????????????????<title>Contact</title></head><body>????????????????????????<h2>Contac"post">????????????????????????????????????????????????{% csrf_token %}????????????????????????????"submit">Submit</button>????????????????????????</for |
#Output : django-admin startproject dj_recaptcha | How to add Google reCAPTCHA to Django forms?
<!DOCTYPE html><html lang="en"><head>????????????????????????<title>Contact</title></head><body>????????????????????????<h2>Contac"post">????????????????????????????????????????????????{% csrf_token %}????????????????????????????"submit">Submit</button>??????????????????????... |
How to add Google reCAPTCHA to Django forms? | https://www.geeksforgeeks.org/how-to-add-google-recaptcha-to-django-forms/ | # views.py
from django.shortcuts import render, HttpResponse
from .forms import ContactForm
def contact(request):
if request.method == "POST":
form = ContactForm(request.POST)
if form.is_valid():
return HttpResponse("Yay! you are human.")
else:
return HttpResponse(... |
#Output : django-admin startproject dj_recaptcha | How to add Google reCAPTCHA to Django forms?
# views.py
from django.shortcuts import render, HttpResponse
from .forms import ContactForm
def contact(request):
if request.method == "POST":
form = ContactForm(request.POST)
if form.is_valid():
return HttpResponse("Yay! you are human.")
... |
How to add Google reCAPTCHA to Django forms? | https://www.geeksforgeeks.org/how-to-add-google-recaptcha-to-django-forms/ | # urls.py
from django.contrib import admin
from django.urls import path
from contact import views
urlpatterns = [
path("", views.contact, name="index"),
path("admin/", admin.site.urls),
] |
#Output : django-admin startproject dj_recaptcha | How to add Google reCAPTCHA to Django forms?
# urls.py
from django.contrib import admin
from django.urls import path
from contact import views
urlpatterns = [
path("", views.contact, name="index"),
path("admin/", admin.site.urls),
]
#Output : django-admin startproject dj_recaptcha
[END] |
Youtube video downloader using Django | https://www.geeksforgeeks.org/youtube-video-downloader-using-django/ | <!DOCTYPE html><html><body>????????????<h1>Youtube video downloader</h1>?????????????"" method="post">????????????{% csrf_token %}???????????"link">Enter URL:</label>????????????<inp"text" id="link" name="link"><br><br>????????????<inp"submit" value="Submit"></form>????????????</body |
#Output : pip install pytube | Youtube video downloader using Django
<!DOCTYPE html><html><body>????????????<h1>Youtube video downloader</h1>?????????????"" method="post">????????????{% csrf_token %}???????????"link">Enter URL:</label>????????????<inp"text" id="link" name="link"><br><br>????????????<inp"submit" value="Submit"></form>????????????</bo... |
Youtube video downloader using Django | https://www.geeksforgeeks.org/youtube-video-downloader-using-django/ | # importing all the required modules
from django.shortcuts import render, redirect
from pytube import *
# defining function
def youtube(request):
# checking whether request.method is post or not
if request.method == "POST":
# getting link from frontend
link = request.POST["link"]
video... |
#Output : pip install pytube | Youtube video downloader using Django
# importing all the required modules
from django.shortcuts import render, redirect
from pytube import *
# defining function
def youtube(request):
# checking whether request.method is post or not
if request.method == "POST":
# getting link from frontend
lin... |
Youtube video downloader using Django | https://www.geeksforgeeks.org/youtube-video-downloader-using-django/ | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path("admin/", admin.site.urls),
path("youtube", views.youtube, name="youtube"),
] |
#Output : pip install pytube | Youtube video downloader using Django
from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path("admin/", admin.site.urls),
path("youtube", views.youtube, name="youtube"),
]
#Output : pip install pytube
[END] |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | from django.shortcuts import render, HttpResponse, redirect, HttpResponseRedirect
from django.contrib.auth import logout, authenticate, login
from .models import CustomUser, Staffs, Students, AdminHOD
from django.contrib import messages
def home(request):
return render(request, "home.html")
def contact(request)... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
from django.shortcuts import render, HttpResponse, redirect, HttpResponseRedirect
from django.contrib.auth import logout, authenticate, login
from .models import CustomUser, Staffs, Students, AdminHOD
from django.contrib import messages
def home(request):
... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | from django.contrib import admin
from django.urls import path, include
from . import views
from . import HodViews, StaffViews, StudentViews
urlpatterns = [
path("admin/", admin.site.urls),
path("", views.home, name="home"),
path("contact", views.contact, name="contact"),
path("login", views.loginUser, ... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
from django.contrib import admin
from django.urls import path, include
from . import views
from . import HodViews, StaffViews, StudentViews
urlpatterns = [
path("admin/", admin.site.urls),
path("", views.home, name="home"),
path("contact", views.con... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib import messages
from django.core.files.storage import FileSystemStorage
from django.urls import reverse
import datetime
from .models import (
CustomUser,
Staffs,
Courses,
Subjects... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib import messages
from django.core.files.storage import FileSystemStorage
from django.urls import reverse
import datetime
from .models impo... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django.contrib import messages
from django.core.files.storage import FileSystemStorage
from django.urls import reverse
from django.views.decorators.csrf import csrf_exempt
from django.core import ... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django.contrib import messages
from django.core.files.storage import FileSystemStorage
from django.urls import reverse
from django.views.d... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django.contrib import messages
from django.core.files.storage import FileSystemStorage
from django.urls import reverse
from django.views.decorators.csrf import csrf_exempt
import json
from .forms... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django.contrib import messages
from django.core.files.storage import FileSystemStorage
from django.urls import reverse
from django.views.d... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | from django.contrib.auth.models import AbstractUser
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
class SessionYearModel(models.Model):
id = models.AutoField(primary_key=True)
session_start_year = models.DateField()
session_end_year = mode... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
class SessionYearModel(models.Model):
id = models.AutoField(primary_key=True)
session_s... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | from django import forms
from .models import Courses, SessionYearModel
class DateInput(forms.DateInput):
input_type = "date"
class AddStudentForm(forms.Form):
email = forms.EmailField(
label="Email",
max_length=50,
widget=forms.EmailInput(attrs={"class": "form-control"}),
)
p... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
from django import forms
from .models import Courses, SessionYearModel
class DateInput(forms.DateInput):
input_type = "date"
class AddStudentForm(forms.Form):
email = forms.EmailField(
label="Email",
max_length=50,
widget=form... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import (
CustomUser,
AdminHOD,
Staffs,
Courses,
Subjects,
Students,
Attendance,
AttendanceReport,
LeaveReportStudent,
LeaveReportStaff,
FeedBackStudent,
FeedBackStaffs,
Notif... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import (
CustomUser,
AdminHOD,
Staffs,
Courses,
Subjects,
Students,
Attendance,
AttendanceReport,
LeaveReportStudent,
LeaveRepor... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | {% load static %}??????<!DOCTYPE html><html><head>????????????<m"utf-8">????????????<meta htt"X-UA-Compatible" content="IE=edge">????????????<title>College Management System | Dashboard</title>????????????<!-- Tell the browser to be responsive to screen width --"viewport" content="width=device-width, initial-scale=1">?... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
{% load static %}??????<!DOCTYPE html><html><head>????????????<m"utf-8">????????????<meta htt"X-UA-Compatible" content="IE=edge">????????????<title>College Management System | Dashboard</title>????????????<!-- Tell the browser to be responsive to screen width --... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | {% extends 'base.html' %}{% load static %}{% block title %}Home{% endblock title %}??????{% block content %}<html><head>??????<style>img {????????????background-size: cover;}body {background-color: coral;}??????"stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
{% extends 'base.html' %}{% load static %}{% block title %}Home{% endblock title %}??????{% block content %}<html><head>??????<style>img {????????????background-size: cover;}body {background-color: coral;}??????"stylesheet" href="https://maxcdn.bootstrapcdn.com/... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | {% extends 'base.html' %}{% load static %}{% block content %}<head>??????????????????<m"utf-8">?????????????????"viewport" content="width=device-width, initial-scale=1.0">??????????????????<title>Untitled</title>????"stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css"... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
{% extends 'base.html' %}{% load static %}{% block content %}<head>??????????????????<m"utf-8">?????????????????"viewport" content="width=device-width, initial-scale=1.0">??????????????????<title>Untitled</title>????"stylesheet" href="https://cdnjs.cloudflare.co... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | {% extends 'base.html' %}{% load static %}{% block content %}<head>??????????????????<m"utf-8">?????????????????"viewport" content="width=device-width, initial-scale=1; maximum-scale=1.0; user-scalable=0;">??????????????????<title>Untitled</title>????"stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-boo... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
{% extends 'base.html' %}{% load static %}{% block content %}<head>??????????????????<m"utf-8">?????????????????"viewport" content="width=device-width, initial-scale=1; maximum-scale=1.0; user-scalable=0;">??????????????????<title>Untitled</title>????"stylesheet... |
College Management System using Django - Python Project | https://www.geeksforgeeks.org/college-management-system-using-django-python-project/ | {% extends 'base.html' %}{% load static %}??????{% block content %}?????????????"navbar navbar-expand-lg navbar-dark bg-dark">????????????????????????????????????????????"/ " class="btn btn-outline-primary my-1 mx-2">Go Back To Home </a>??????????????????????????????????????????????????????"navbar-toggler" type="button... |
#Output : django-admin startproject student_management_project | College Management System using Django - Python Project
{% extends 'base.html' %}{% load static %}??????{% block content %}?????????????"navbar navbar-expand-lg navbar-dark bg-dark">????????????????????????????????????????????"/ " class="btn btn-outline-primary my-1 mx-2">Go Back To Home </a>?????????????????????????... |
Speak the meaning of the word using Python | https://www.geeksforgeeks.org/speak-the-meaning-of-the-word-using-python/ | import pyttsx3
from PyDictionary import PyDictionary
class Speaking:
def speak(self, audio):
# Having the initial constructor of pyttsx3
# and having the sapi5 in it as a parameter
engine = pyttsx3.init("sapi5")
# Calling the getter and setter of pyttsx3
voices = engine.ge... |
#Output : pip install PyDictionary | Speak the meaning of the word using Python
import pyttsx3
from PyDictionary import PyDictionary
class Speaking:
def speak(self, audio):
# Having the initial constructor of pyttsx3
# and having the sapi5 in it as a parameter
engine = pyttsx3.init("sapi5")
# Calling the getter and s... |
Convert PDF File Text to Audio Speech using Python | https://www.geeksforgeeks.org/convert-pdf-file-text-to-audio-speech-using-python/ | # importing the modules
import PyPDF2
import pyttsx3
# path of the PDF file
path = open("file.pdf", "rb")
# creating a PdfFileReader object
pdfReader = PyPDF2.PdfFileReader(path)
# the page with which you want to start
# this will read the page of 25th page.
from_page = pdfReader.getPage(24)
# extracting the text f... |
#Output : pip install pyttsx3
| Convert PDF File Text to Audio Speech using Python
# importing the modules
import PyPDF2
import pyttsx3
# path of the PDF file
path = open("file.pdf", "rb")
# creating a PdfFileReader object
pdfReader = PyPDF2.PdfFileReader(path)
# the page with which you want to start
# this will read the page of 25th page.
from_pa... |
Convert Text to Speech in Python | https://www.geeksforgeeks.org/convert-text-speech-python/ | # Import the required module for text
# to speech conversion
from gtts import gTTS
# This module is imported so that we can
# play the converted audio
import os
# The text that you want to convert to audio
mytext = "Welcome to geeksforgeeks!"
# Language in which you want to convert
language = "en"
# Passing the tex... |
#Output :
| Convert Text to Speech in Python
# Import the required module for text
# to speech conversion
from gtts import gTTS
# This module is imported so that we can
# play the converted audio
import os
# The text that you want to convert to audio
mytext = "Welcome to geeksforgeeks!"
# Language in which you want to convert
l... |
Python Text To Speech using pyttsx module | https://www.geeksforgeeks.org/python-text-to-speech-pyttsx-module/ | # importing the pyttsx library
import pyttsx3
# initialisation
engine = pyttsx3.init()
# testing
engine.say("My first code on text-to-speech")
engine.say("Thank you, Geeksforgeeks")
engine.runAndWait() |
#Output : pip install pyttsx3 | Python Text To Speech using pyttsx module
# importing the pyttsx library
import pyttsx3
# initialisation
engine = pyttsx3.init()
# testing
engine.say("My first code on text-to-speech")
engine.say("Thank you, Geeksforgeeks")
engine.runAndWait()
#Output : pip install pyttsx3
[END] |
Python Text To Speech using pyttsx module | https://www.geeksforgeeks.org/python-text-to-speech-pyttsx-module/ | import pyttsx3
def onStart():
print("starting")
def onWord(name, location, length):
print("word", name, location, length)
def onEnd(name, completed):
print("finishing", name, completed)
engine = pyttsx3.init()
engine.connect("started-utterance", onStart)
engine.connect("started-word", onWord)
engin... |
#Output : pip install pyttsx3 | Python Text To Speech using pyttsx module
import pyttsx3
def onStart():
print("starting")
def onWord(name, location, length):
print("word", name, location, length)
def onEnd(name, completed):
print("finishing", name, completed)
engine = pyttsx3.init()
engine.connect("started-utterance", onStart)
en... |
Convert Speech to text and text to Speech | https://www.geeksforgeeks.org/python-convert-speech-to-text-and-text-to-speech/ | # Python program to translate
# speech to text and text to speech
import speech_recognition as sr
import pyttsx3
# Initialize the recognizer
r = sr.Recognizer()
# Function to convert text to
# speech
def SpeakText(command):
# Initialize the engine
engine = pyttsx3.init()
engine.say(command)
engine.... |
#Output : pip install speechrecognition | Convert Speech to text and text to Speech
# Python program to translate
# speech to text and text to speech
import speech_recognition as sr
import pyttsx3
# Initialize the recognizer
r = sr.Recognizer()
# Function to convert text to
# speech
def SpeakText(command):
# Initialize the engine
engine = pyttsx3.... |
Personal Voice Assistant in Python | https://www.geeksforgeeks.org/personal-voice-assistant-in-python/ | # importing speech recognition package from google api
import speech_recognition as sr
import playsound # to play saved mp3 file
from gtts import gTTS # google text to speech
import os # to save/open files
import wolframalpha # to calculate strings into formula
from selenium import webdriver # to control browser operat... |
#Output : 1. Say "Search google Geeks for Geeks" | Personal Voice Assistant in Python
# importing speech recognition package from google api
import speech_recognition as sr
import playsound # to play saved mp3 file
from gtts import gTTS # google text to speech
import os # to save/open files
import wolframalpha # to calculate strings into formula
from selenium import we... |
Personal Voice Assistant in Python | https://www.geeksforgeeks.org/personal-voice-assistant-in-python/ | def process_text(input):
try:
if "search" in input or "play" in input:
# a basic web crawler using selenium
search_web(input)
return
elif "who are you" in input or "define yourself" in input:
speak = """Hello, I am Person. Your personal Assistant.
... |
#Output : 1. Say "Search google Geeks for Geeks" | Personal Voice Assistant in Python
def process_text(input):
try:
if "search" in input or "play" in input:
# a basic web crawler using selenium
search_web(input)
return
elif "who are you" in input or "define yourself" in input:
speak = """Hello, I am P... |
Personal Voice Assistant in Python | https://www.geeksforgeeks.org/personal-voice-assistant-in-python/ | def search_web(input):
driver = webdriver.Firefox()
driver.implicitly_wait(1)
driver.maximize_window()
if "youtube" in input.lower():
assistant_speaks("Opening in youtube")
indx = input.lower().split().index("youtube")
query = input.split()[indx + 1 :]
driver.get("http:/... |
#Output : 1. Say "Search google Geeks for Geeks" | Personal Voice Assistant in Python
def search_web(input):
driver = webdriver.Firefox()
driver.implicitly_wait(1)
driver.maximize_window()
if "youtube" in input.lower():
assistant_speaks("Opening in youtube")
indx = input.lower().split().index("youtube")
query = input.split()[ind... |
Build a Virtual Assistant Using Python | https://www.geeksforgeeks.org/build-a-virtual-assistant-using-python/ | def speak(audio):
engine = pyttsx3.init()
# getter method(gets the current value
# of engine property)
voices = engine.getProperty("voices")
# setter method .[0]=male voice and
# [1]=female voice in set Property.
engine.setProperty("voice", voices[0].id)
# Method for the speaking of th... |
#Output : pip install pyttsx3 | Build a Virtual Assistant Using Python
def speak(audio):
engine = pyttsx3.init()
# getter method(gets the current value
# of engine property)
voices = engine.getProperty("voices")
# setter method .[0]=male voice and
# [1]=female voice in set Property.
engine.setProperty("voice", voices[0].i... |
Build a Virtual Assistant Using Python | https://www.geeksforgeeks.org/build-a-virtual-assistant-using-python/ | def Take_query():
# calling the Hello function for
# making it more interactive
Hello()
# This loop is infinite as it will take
# our queries continuously until and unless
# we do not say bye to exit or terminate
# the program
while True:
# taking the query and making it into
... |
#Output : pip install pyttsx3 | Build a Virtual Assistant Using Python
def Take_query():
# calling the Hello function for
# making it more interactive
Hello()
# This loop is infinite as it will take
# our queries continuously until and unless
# we do not say bye to exit or terminate
# the program
while True:
#... |
Build a Virtual Assistant Using Python | https://www.geeksforgeeks.org/build-a-virtual-assistant-using-python/ | # this method is for taking the commands
# and recognizing the command from the
# speech_Recognition module we will use
# the recongizer method for recognizing
def takeCommand():
r = sr.Recognizer()
# from the speech_Recognition module
# we will use the Microphone module
# for listening the command
... |
#Output : pip install pyttsx3 | Build a Virtual Assistant Using Python
# this method is for taking the commands
# and recognizing the command from the
# speech_Recognition module we will use
# the recongizer method for recognizing
def takeCommand():
r = sr.Recognizer()
# from the speech_Recognition module
# we will use the Microphone mod... |
Build a Virtual Assistant Using Python | https://www.geeksforgeeks.org/build-a-virtual-assistant-using-python/ | # code
def tellTime(self):
# This method will give the time
time = str(datetime.datetime.now())
# the time will be displayed like this "2020-06-05 17:50:14.582630"
# nd then after slicing we can get time
print(time)
hour = time[11:13]
min = time[14:16]
self.Speak(self, "The time is sir" ... |
#Output : pip install pyttsx3 | Build a Virtual Assistant Using Python
# code
def tellTime(self):
# This method will give the time
time = str(datetime.datetime.now())
# the time will be displayed like this "2020-06-05 17:50:14.582630"
# nd then after slicing we can get time
print(time)
hour = time[11:13]
min = time[14:16]
... |
Build a Virtual Assistant Using Python | https://www.geeksforgeeks.org/build-a-virtual-assistant-using-python/ | def Hello():????????????????????????# This function is for when the assistant????????????????????????# is called it will say hello and then??"hello sir I am your desktop assistant. /??????????????????????????????????????????????") |
#Output : pip install pyttsx3 | Build a Virtual Assistant Using Python
def Hello():????????????????????????# This function is for when the assistant????????????????????????# is called it will say hello and then??"hello sir I am your desktop assistant. /??????????????????????????????????????????????")
#Output : pip install pyttsx3
[END] |
Build a Virtual Assistant Using Python | https://www.geeksforgeeks.org/build-a-virtual-assistant-using-python/ | if __name__ == "__main__":
# main method for executing
# the functions
Take_query() |
#Output : pip install pyttsx3 | Build a Virtual Assistant Using Python
if __name__ == "__main__":
# main method for executing
# the functions
Take_query()
#Output : pip install pyttsx3
[END] |
Build a Virtual Assistant Using Python | https://www.geeksforgeeks.org/build-a-virtual-assistant-using-python/ | import pyttsx3import speech_recognition as srimport webbrowser??????import datetime??????import wikipedia????????????# this method is for taking the commands# and recognizing the command from the# speech_Recognition module we will use# the recongizer method for recognizingdef takeCommand():?????????????????????????????... |
#Output : pip install pyttsx3 | Build a Virtual Assistant Using Python
import pyttsx3import speech_recognition as srimport webbrowser??????import datetime??????import wikipedia????????????# this method is for taking the commands# and recognizing the command from the# speech_Recognition module we will use# the recongizer method for recognizingdef take... |
Create a simple assistant using Wolfram Alpha API | https://www.geeksforgeeks.org/python-create-a-simple-assistant-using-wolfram-alpha-api/ | # Python program to??????# demonstrate creation of an# assistant using wolf ram API????????????import wolframalpha????????????# Taking input from userquestion = input('Question: ')????????????# App id obtained by the above stepsapp_id = ?????????Your app_id?????????????????????# Instance of wolf ram alpha??????# client... | #Input : What is the capital of India?
| Create a simple assistant using Wolfram Alpha API
# Python program to??????# demonstrate creation of an# assistant using wolf ram API????????????import wolframalpha????????????# Taking input from userquestion = input('Question: ')????????????# App id obtained by the above stepsapp_id = ?????????Your app_id?????????????... |
Voice Assistant using python | https://www.geeksforgeeks.org/voice-assistant-using-python/ | import subprocess
import wolframalpha
import pyttsx3
import tkinter
import json
import random
import operator
import speech_recognition as sr
import datetime
import wikipedia
import webbrowser
import os
import winshell
import pyjokes
import feedparser
import smtplib
import ctypes
import time
import requests
import shut... |
#Output : pip install wolframalpha | Voice Assistant using python
import subprocess
import wolframalpha
import pyttsx3
import tkinter
import json
import random
import operator
import speech_recognition as sr
import datetime
import wikipedia
import webbrowser
import os
import winshell
import pyjokes
import feedparser
import smtplib
import ctypes
import tim... |
Voice Assistant using python | https://www.geeksforgeeks.org/voice-assistant-using-python/ | engine = pyttsx3.init("sapi5")
voices = engine.getProperty("voices")
engine.setProperty("voice", voices[1].id) |
#Output : pip install wolframalpha | Voice Assistant using python
engine = pyttsx3.init("sapi5")
voices = engine.getProperty("voices")
engine.setProperty("voice", voices[1].id)
#Output : pip install wolframalpha
[END] |
Voice Assistant using python | https://www.geeksforgeeks.org/voice-assistant-using-python/ | def speak(audio):
engine.say(audio)
engine.runAndWait()
def wishMe():
hour = int(datetime.datetime.now().hour)
if hour >= 0 and hour < 12:
speak("Good Morning Sir !")
elif hour >= 12 and hour < 18:
speak("Good Afternoon Sir !")
else:
speak("Good Evening Sir !")
a... |
#Output : pip install wolframalpha | Voice Assistant using python
def speak(audio):
engine.say(audio)
engine.runAndWait()
def wishMe():
hour = int(datetime.datetime.now().hour)
if hour >= 0 and hour < 12:
speak("Good Morning Sir !")
elif hour >= 12 and hour < 18:
speak("Good Afternoon Sir !")
else:
speak... |
Voice Assistant using python | https://www.geeksforgeeks.org/voice-assistant-using-python/ | if __name__ == "__main__":
clear = lambda: os.system("cls")
# This Function will clean any
# command before execution of this python file
clear()
wishMe()
username()
while True:
query = takeCommand().lower()
# All the commands said by user will be
# stored here in ... |
#Output : pip install wolframalpha | Voice Assistant using python
if __name__ == "__main__":
clear = lambda: os.system("cls")
# This Function will clean any
# command before execution of this python file
clear()
wishMe()
username()
while True:
query = takeCommand().lower()
# All the commands said by user will... |
Voice search Wikipedia using Python | https://www.geeksforgeeks.org/voice-search-wikipedia-using-python/ | # Python package supporting common text-to-speech engines
import pyttsx3
# For understanding speech
import speech_recognition as sr
# For fetching the answers
# to computational queries
import wolframalpha
# for fetching wikipedia articles
import wikipedia
# Function to search the query
# that is either entered or... |
#Output :
| Voice search Wikipedia using Python
# Python package supporting common text-to-speech engines
import pyttsx3
# For understanding speech
import speech_recognition as sr
# For fetching the answers
# to computational queries
import wolframalpha
# for fetching wikipedia articles
import wikipedia
# Function to search t... |
Language Translator Using Google API in Python | https://www.geeksforgeeks.org/language-translator-using-google-api-in-python/ | # To Print all the languages that google
# translator supports
import googletrans
print(googletrans.LANGUAGES) |
#Output : pip install googletrans | Language Translator Using Google API in Python
# To Print all the languages that google
# translator supports
import googletrans
print(googletrans.LANGUAGES)
#Output : pip install googletrans
[END] |
Language Translator Using Google API in Python | https://www.geeksforgeeks.org/language-translator-using-google-api-in-python/ | # Importing necessary modules required
import speech_recognition as spr
from googletrans import Translator
from gtts import gTTS
import os
# Creating Recogniser() class object
recog1 = spr.Recognizer()
# Creating microphone instance
mc = spr.Microphone()
# Capture Voice
with mc as source:
print("Speak 'hello' ... |
#Output : pip install googletrans | Language Translator Using Google API in Python
# Importing necessary modules required
import speech_recognition as spr
from googletrans import Translator
from gtts import gTTS
import os
# Creating Recogniser() class object
recog1 = spr.Recognizer()
# Creating microphone instance
mc = spr.Microphone()
# Capture Voi... |
How to make a voice assistant for E-mail in Python? | https://www.geeksforgeeks.org/how-to-make-a-voice-assistant-for-e-mail-in-python/ | from __future__ import print_function
import datetime
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import os
import pyttsx3
import speech_recognition as sr
from datetime import date
# I... |
#Output : pip install pyttsx3 | How to make a voice assistant for E-mail in Python?
from __future__ import print_function
import datetime
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import os
import pyttsx3
import spe... |
Voice Assistant for Movies using Python | https://www.geeksforgeeks.org/voice-assistant-for-movies-using-python/ | # importing all required libraries
import imdb
import pyttsx3
import speech_recognition as sr
import datetime
# Function for speaking
def speak(text):
engine = pyttsx3.init()
voices = engine.getProperty("voices")
engine.setProperty("voice", voices[1].id)
rate = engine.getProperty("rate")
engine.s... |
#Output : pip install IMDbPY | Voice Assistant for Movies using Python
# importing all required libraries
import imdb
import pyttsx3
import speech_recognition as sr
import datetime
# Function for speaking
def speak(text):
engine = pyttsx3.init()
voices = engine.getProperty("voices")
engine.setProperty("voice", voices[1].id)
rate = ... |
8-bit game using pygame | https://www.geeksforgeeks.org/8-bit-game-using-pygame/ | # Python program to demonstrate
# 8 bit game
import pygame
import sys
import random
# initialize the constructor
pygame.init()
res = (720, 720)
# randomly assigns a value to variables
# ranging from lower limit to upper
c1 = random.randint(125, 255)
c2 = random.randint(0, 255)
c3 = random.randint(0, 255)
screen =... |
#Output : pip install pygame | 8-bit game using pygame
# Python program to demonstrate
# 8 bit game
import pygame
import sys
import random
# initialize the constructor
pygame.init()
res = (720, 720)
# randomly assigns a value to variables
# ranging from lower limit to upper
c1 = random.randint(125, 255)
c2 = random.randint(0, 255)
c3 = random.r... |
Caller ID Lookup using Python | https://www.geeksforgeeks.org/caller-id-lookup-using-python/ | # import module
import requests
import pandas as pd
from bs4 import BeautifulSoup
# link for extract html data
# Making a GET request
def getdata(url):
r = requests.get(url)
return r.text
# API key
# Enter your own API key instead of 'YOUR API KEY'
api = "YOUR API KEY"
# number and country code
number = "... |
#Output : pip install bs4 | Caller ID Lookup using Python
# import module
import requests
import pandas as pd
from bs4 import BeautifulSoup
# link for extract html data
# Making a GET request
def getdata(url):
r = requests.get(url)
return r.text
# API key
# Enter your own API key instead of 'YOUR API KEY'
api = "YOUR API KEY"
# numb... |
Tweet using Python | https://www.geeksforgeeks.org/tweet-using-python/ | # importing the module
import tweepy
# personal details
consumer_key = "xxxxxxxxxxxxxxxx"
consumer_secret = "xxxxxxxxxxxxxxxx"
access_token = "xxxxxxxxxxxxxxxx"
access_token_secret = "xxxxxxxxxxxxxxxx"
# authentication of consumer key and secret
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
# authenticat... |
#Output :
| Tweet using Python
# importing the module
import tweepy
# personal details
consumer_key = "xxxxxxxxxxxxxxxx"
consumer_secret = "xxxxxxxxxxxxxxxx"
access_token = "xxxxxxxxxxxxxxxx"
access_token_secret = "xxxxxxxxxxxxxxxx"
# authentication of consumer key and secret
auth = tweepy.OAuthHandler(consumer_key, consumer_sec... |
Tweet using Python | https://www.geeksforgeeks.org/tweet-using-python/ | time.sleep(600) # waits for 600 seconds |
#Output :
| Tweet using Python
time.sleep(600) # waits for 600 seconds
#Output :
[END] |
Tweet using Python | https://www.geeksforgeeks.org/tweet-using-python/ | # importing the module
import tweepy
# personal information
consumer_key = "xxxxxxxxxxxxxxxx"
consumer_secret = "xxxxxxxxxxxxxxxx"
access_token = "xxxxxxxxxxxxxxxx"
access_token_secret = "xxxxxxxxxxxxxxxx"
# authentication
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, a... |
#Output :
| Tweet using Python
# importing the module
import tweepy
# personal information
consumer_key = "xxxxxxxxxxxxxxxx"
consumer_secret = "xxxxxxxxxxxxxxxx"
access_token = "xxxxxxxxxxxxxxxx"
access_token_secret = "xxxxxxxxxxxxxxxx"
# authentication
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_to... |
How to make Flappy Bird Game in Pygame? | https://www.geeksforgeeks.org/how-to-make-flappy-bird-game-in-pygame/ | # For generating random height of pipes
import random
import sys
import pygame
from pygame.locals import *
# Global Variables for the game
window_width = 600
window_height = 499
# set height and width of window
window = pygame.display.set_mode((window_width, window_height))
elevation = window_height * 0.8
game_images... |
#Output : pip install pygame | How to make Flappy Bird Game in Pygame?
# For generating random height of pipes
import random
import sys
import pygame
from pygame.locals import *
# Global Variables for the game
window_width = 600
window_height = 499
# set height and width of window
window = pygame.display.set_mode((window_width, window_height))
ele... |
How to make Flappy Bird Game in Pygame? | https://www.geeksforgeeks.org/how-to-make-flappy-bird-game-in-pygame/ | # program where the game starts
if __name__ == "__main__":
# For initializing modules of pygame library
pygame.init()
framepersecond_clock = pygame.time.Clock()
# Sets the title on top of game window
pygame.display.set_caption("Flappy Bird Game")
# Load all the images which we will use in the ... |
#Output : pip install pygame | How to make Flappy Bird Game in Pygame?
# program where the game starts
if __name__ == "__main__":
# For initializing modules of pygame library
pygame.init()
framepersecond_clock = pygame.time.Clock()
# Sets the title on top of game window
pygame.display.set_caption("Flappy Bird Game")
# Load ... |
How to make Flappy Bird Game in Pygame? | https://www.geeksforgeeks.org/how-to-make-flappy-bird-game-in-pygame/ | while True:
# sets the coordinates of flappy bird
horizontal = int(window_width / 5)
vertical = int((window_height - game_images["flappybird"].get_height()) / 2)
# for selevel
ground = 0
while True:
for event in pygame.event.get():
# if user clicks on cross button, close the... |
#Output : pip install pygame | How to make Flappy Bird Game in Pygame?
while True:
# sets the coordinates of flappy bird
horizontal = int(window_width / 5)
vertical = int((window_height - game_images["flappybird"].get_height()) / 2)
# for selevel
ground = 0
while True:
for event in pygame.event.get():
# i... |
How to make Flappy Bird Game in Pygame? | https://www.geeksforgeeks.org/how-to-make-flappy-bird-game-in-pygame/ | def createPipe():
offset = window_height / 3
pipeHeight = game_images["pipeimage"][0].get_height()
# generating random height of pipes
y2 = offset + random.randrange(
0, int(window_height - game_images["sea_level"].get_height() - 1.2 * offset)
)
pipeX = window_width + 10
y1 = pipeHe... |
#Output : pip install pygame | How to make Flappy Bird Game in Pygame?
def createPipe():
offset = window_height / 3
pipeHeight = game_images["pipeimage"][0].get_height()
# generating random height of pipes
y2 = offset + random.randrange(
0, int(window_height - game_images["sea_level"].get_height() - 1.2 * offset)
)
p... |
How to make Flappy Bird Game in Pygame? | https://www.geeksforgeeks.org/how-to-make-flappy-bird-game-in-pygame/ | # Checking if bird is above the sealevel.def isGameOver(horizontal, vertical, up_pipes, down_pipes):????????????????????????if vertical > elevation - 25 or vertical < 0:??????????????????????????????????????????????????????return True????????????????????????????????????# Checking if bird hits the upper pipe or not?????... |
#Output : pip install pygame | How to make Flappy Bird Game in Pygame?
# Checking if bird is above the sealevel.def isGameOver(horizontal, vertical, up_pipes, down_pipes):????????????????????????if vertical > elevation - 25 or vertical < 0:??????????????????????????????????????????????????????return True????????????????????????????????????# Checking... |
How to make Flappy Bird Game in Pygame? | https://www.geeksforgeeks.org/how-to-make-flappy-bird-game-in-pygame/ | def flappygame():
your_score = 0
horizontal = int(window_width / 5)
vertical = int(window_width / 2)
ground = 0
mytempheight = 100
# Generating two pipes for blitting on window
first_pipe = createPipe()
second_pipe = createPipe()
# List containing lower pipes
down_pipes = [
... |
#Output : pip install pygame | How to make Flappy Bird Game in Pygame?
def flappygame():
your_score = 0
horizontal = int(window_width / 5)
vertical = int(window_width / 2)
ground = 0
mytempheight = 100
# Generating two pipes for blitting on window
first_pipe = createPipe()
second_pipe = createPipe()
# List conta... |
How to make Flappy Bird Game in Pygame? | https://www.geeksforgeeks.org/how-to-make-flappy-bird-game-in-pygame/ | # Import module
import random
import sys
import pygame
from pygame.locals import *
# All the Game Variables
window_width = 600
window_height = 499
# set height and width of window
window = pygame.display.set_mode((window_width, window_height))
elevation = window_height * 0.8
game_images = {}
framepersecond = 32
pipei... |
#Output : pip install pygame | How to make Flappy Bird Game in Pygame?
# Import module
import random
import sys
import pygame
from pygame.locals import *
# All the Game Variables
window_width = 600
window_height = 499
# set height and width of window
window = pygame.display.set_mode((window_width, window_height))
elevation = window_height * 0.8
ga... |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | def signup():
print(
"Please enter the username by which you \
wanna access your account"
)
username = input("please enter here: ")
password = input("Enter a password: ") |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
def signup():
print(
"Please enter the username by which you \
wanna access your account"
)
username = input("please enter here: ")
password = input("Enter a password: ")
#Output : 2021-06-01 14:44:02.851506
[END] |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | # pssd means password, ussnm is username
def user_information(ussnm, pssd):
name = input("enter your name please: ")
address = input("your address")
age = input("Your age please")
ussnm_ = ussnm + " task.txt"
f = open(ussnm_, "a")
f.write(pssd)
f.write("\nName: ")
f.write(name)
f.wr... |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
# pssd means password, ussnm is username
def user_information(ussnm, pssd):
name = input("enter your name please: ")
address = input("your address")
age = input("Your age please")
ussnm_ = ussnm + " task.txt"
f = open(ussnm_, "a")
f.write(pssd)
f.write("\... |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | def login():
print("Please enter your username ")
user_nm = input("Enter here: ")
# Password as entered while logging in
pssd_wr = (input("enterr the password")) + "\n"
try:
usernm = user_nm + " task.txt"
f_ = open(usernm, "r")
# variable 'k' contains the password as saved
... |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
def login():
print("Please enter your username ")
user_nm = input("Enter here: ")
# Password as entered while logging in
pssd_wr = (input("enterr the password")) + "\n"
try:
usernm = user_nm + " task.txt"
f_ = open(usernm, "r")
# variable... |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | def signup():
print("Please enter the username by which you wanna access your account")
username = input("please enter here: ")
password = input("Enter a password: ")
user_information(username, password)
print("Sir please proceed towards log in")
login() |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
def signup():
print("Please enter the username by which you wanna access your account")
username = input("please enter here: ")
password = input("Enter a password: ")
user_information(username, password)
print("Sir please proceed towards log in")
login()
#O... |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | def login():
print("Please enter your username ")
user_nm = input("Enter here: ")
# Password as entered while logging in
pssd_wr = (input("enterr the password")) + "\n"
try:
usernm = user_nm + " task.txt"
f_ = open(usernm, "r")
# variable 'k' contains the password as
... |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
def login():
print("Please enter your username ")
user_nm = input("Enter here: ")
# Password as entered while logging in
pssd_wr = (input("enterr the password")) + "\n"
try:
usernm = user_nm + " task.txt"
f_ = open(usernm, "r")
# variable... |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | def view_data(username):
ff = open(username, "r")
print(ff.read())
ff.close() |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
def view_data(username):
ff = open(username, "r")
print(ff.read())
ff.close()
#Output : 2021-06-01 14:44:02.851506
[END] |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | def task_information(username):
print("Sir enter n.o of task you want to ADD")
j = int(input())
f1 = open(username, "a")
for i in range(1, j + 1):
task = input("enter the task")
target = input("enter the target")
pp = "TASK " + str(i) + " :"
qq = "TARGET " + str(i) + " :... |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
def task_information(username):
print("Sir enter n.o of task you want to ADD")
j = int(input())
f1 = open(username, "a")
for i in range(1, j + 1):
task = input("enter the task")
target = input("enter the target")
pp = "TASK " + str(i) + " :"
... |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | def task_update(username):
username = username + " TASK.txt"
print("Please enter the tasks which are completed ")
task_completed = input()
print("Enter task which are still not started by you")
task_not_started = input()
print("Enter task which you are doing")
task_ongoing = input()
f... |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
def task_update(username):
username = username + " TASK.txt"
print("Please enter the tasks which are completed ")
task_completed = input()
print("Enter task which are still not started by you")
task_not_started = input()
print("Enter task which you are doing... |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | def task_update_viewer(username):
ussnm = username + " TASK.txt"
o = open(ussnm, "r")
print(o.read())
o.close() |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
def task_update_viewer(username):
ussnm = username + " TASK.txt"
o = open(ussnm, "r")
print(o.read())
o.close()
#Output : 2021-06-01 14:44:02.851506
[END] |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | if __name__ == "__main__":
print("WELCOME TO ANURAG`S TASK MANAGER")
print("sir are you new to this software")
a = int(input("Type 1 if new otherwise press 0 ::"))
if a == 1:
signup()
elif a == 0:
login()
else:
print("You have provided wrong input !") |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
if __name__ == "__main__":
print("WELCOME TO ANURAG`S TASK MANAGER")
print("sir are you new to this software")
a = int(input("Type 1 if new otherwise press 0 ::"))
if a == 1:
signup()
elif a == 0:
login()
else:
print("You have provided... |
Personalized Task Manager in Python | https://www.geeksforgeeks.org/personalized-task-manager-in-python/ | import datetime
# pssd means password, ussnm is username
def user_information(ussnm, pssd):
name = input("enter your name please: ")
address = input("your address")
age = input("Your age please")
ussnm_ = ussnm + " task.txt"
f = open(ussnm_, "a")
f.write(pssd)
f.write("\nName: ")
f.wri... |
#Output : 2021-06-01 14:44:02.851506 | Personalized Task Manager in Python
import datetime
# pssd means password, ussnm is username
def user_information(ussnm, pssd):
name = input("enter your name please: ")
address = input("your address")
age = input("Your age please")
ussnm_ = ussnm + " task.txt"
f = open(ussnm_, "a")
f.write(pss... |
Download Instagram profile pic using Python | https://www.geeksforgeeks.org/download-instagram-profile-pic-using-python/ | import requests
from bs4 import BeautifulSoup as bs
import json
import random
import os.path |
#Output : pip install requests | Download Instagram profile pic using Python
import requests
from bs4 import BeautifulSoup as bs
import json
import random
import os.path
#Output : pip install requests
[END] |
Download Instagram profile pic using Python | https://www.geeksforgeeks.org/download-instagram-profile-pic-using-python/ | insta_url = "https://www.instagram.com"
inta_username = input("enter username of instagram : ")
response = requests.get(f"{insta_url}/{inta_username}/") |
#Output : pip install requests | Download Instagram profile pic using Python
insta_url = "https://www.instagram.com"
inta_username = input("enter username of instagram : ")
response = requests.get(f"{insta_url}/{inta_username}/")
#Output : pip install requests
[END] |
Download Instagram profile pic using Python | https://www.geeksforgeeks.org/download-instagram-profile-pic-using-python/ | if response.ok:
html = response.text
bs_html = bs(html, features="lxml")
bs_html = bs_html.text
index = bs_html.find("profile_pic_url_hd") + 21
remaining_text = bs_html[index:]
remaining_text_index = remaining_text.find("requested_by_viewer") - 3
string_url = remaining_text[:remaining_text... |
#Output : pip install requests | Download Instagram profile pic using Python
if response.ok:
html = response.text
bs_html = bs(html, features="lxml")
bs_html = bs_html.text
index = bs_html.find("profile_pic_url_hd") + 21
remaining_text = bs_html[index:]
remaining_text_index = remaining_text.find("requested_by_viewer") - 3
... |
Download Instagram profile pic using Python | https://www.geeksforgeeks.org/download-instagram-profile-pic-using-python/ | while True:
filename = "pic" + str(random.randint(1, 100000)) + ".jpg"
file_exists = os.path.isfile(filename)
if not file_exists:
with open(filename, "wb+") as handle:
response = requests.get(string_url, stream=True)
if not response.ok:
print(response)
... |
#Output : pip install requests | Download Instagram profile pic using Python
while True:
filename = "pic" + str(random.randint(1, 100000)) + ".jpg"
file_exists = os.path.isfile(filename)
if not file_exists:
with open(filename, "wb+") as handle:
response = requests.get(string_url, stream=True)
if not respons... |
Download Instagram profile pic using Python | https://www.geeksforgeeks.org/download-instagram-profile-pic-using-python/ | import instaloader
ig = instaloader.Instaloader()
dp = input("Enter Insta username : ")
ig.download_profile(dp, profile_pic_only=True) |
#Output : pip install requests | Download Instagram profile pic using Python
import instaloader
ig = instaloader.Instaloader()
dp = input("Enter Insta username : ")
ig.download_profile(dp, profile_pic_only=True)
#Output : pip install requests
[END] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.