#YKYG : If you restart your computer by selecting the restart button, it is known as β¦
Anonymous Quiz
25%
Cold Boot
34%
Soft boot
13%
Cool boot
28%
1&2 option
from selenium import webdriver
import time
browser = webdriver.Chrome('/home/arun/Downloads/chromedriver')
browser.get('https://instagram.com/')
time.sleep(4) #/html/body/div[1]/section/main/article/div[2]/div[1]/div/form/div/div[1]/div/label/input
Username=browser.find_element_by_xpath("/html/body/div[1]/section/main/article/div[2]/div[1]/div/form/div/div[1]/div/label/input")
Username.send_keys("Username")
time.sleep(4)
password=browser.find_element_by_xpath("/html/body/div[1]/section/main/article/div[2]/div[1]/div/form/div/div[2]/div/label/input")
password.send_keys("Password")
password.submit()
time.sleep(5)
Notnow=browser.find_element_by_xpath("/html/body/div[1]/section/main/div/div/div/div/button")
Notnow.click() #/html/body/div[1]/section/main/div/div/div/div/button
time.sleep(3)
Noti=browser.find_element_by_xpath("/html/body/div[4]/div/div/div/div[3]/button[2]")
Noti.click()
time.sleep(7)
def firstpic():
time.sleep(5)
pic = browser.find_element_by_class_name("_9AhH0")
pic.click()
def comment():
time.sleep(5)
commentArea = browser.find_element_by_class_name('Ypffh')
commentArea.click()
time.sleep(5)
commentArea = browser.find_element_by_class_name('Ypffh')
commentArea.click()
commentArea.send_keys("Test command")
commentArea.submit()
firstpic()
comment()
import time
browser = webdriver.Chrome('/home/arun/Downloads/chromedriver')
browser.get('https://instagram.com/')
time.sleep(4) #/html/body/div[1]/section/main/article/div[2]/div[1]/div/form/div/div[1]/div/label/input
Username=browser.find_element_by_xpath("/html/body/div[1]/section/main/article/div[2]/div[1]/div/form/div/div[1]/div/label/input")
Username.send_keys("Username")
time.sleep(4)
password=browser.find_element_by_xpath("/html/body/div[1]/section/main/article/div[2]/div[1]/div/form/div/div[2]/div/label/input")
password.send_keys("Password")
password.submit()
time.sleep(5)
Notnow=browser.find_element_by_xpath("/html/body/div[1]/section/main/div/div/div/div/button")
Notnow.click() #/html/body/div[1]/section/main/div/div/div/div/button
time.sleep(3)
Noti=browser.find_element_by_xpath("/html/body/div[4]/div/div/div/div[3]/button[2]")
Noti.click()
time.sleep(7)
def firstpic():
time.sleep(5)
pic = browser.find_element_by_class_name("_9AhH0")
pic.click()
def comment():
time.sleep(5)
commentArea = browser.find_element_by_class_name('Ypffh')
commentArea.click()
time.sleep(5)
commentArea = browser.find_element_by_class_name('Ypffh')
commentArea.click()
commentArea.send_keys("Test command")
commentArea.submit()
firstpic()
comment()
import cv2
image = cv2.imread("/home/arun/Pictures/png/tom test images.png")
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imwrite("/home/arun/Pictures/png/TomSketch(gray).png", gray_image)
inverted_image = 255 - gray_image
cv2.imwrite("/home/arun/Pictures/png/TomSketch(inverted).png", inverted_image)
blurred = cv2.GaussianBlur(inverted_image, (21, 21), 0)
cv2.imwrite("/home/arun/Pictures/png/TomSketch(blured).png", blurred)
inverted_blurred = 255 - blurred
pencil_sketch = cv2.divide(gray_image, inverted_blurred, scale=256.0)
cv2.imwrite("/home/arun/Pictures/png/TomSketch.png", pencil_sketch)
image = cv2.imread("/home/arun/Pictures/png/tom test images.png")
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imwrite("/home/arun/Pictures/png/TomSketch(gray).png", gray_image)
inverted_image = 255 - gray_image
cv2.imwrite("/home/arun/Pictures/png/TomSketch(inverted).png", inverted_image)
blurred = cv2.GaussianBlur(inverted_image, (21, 21), 0)
cv2.imwrite("/home/arun/Pictures/png/TomSketch(blured).png", blurred)
inverted_blurred = 255 - blurred
pencil_sketch = cv2.divide(gray_image, inverted_blurred, scale=256.0)
cv2.imwrite("/home/arun/Pictures/png/TomSketch.png", pencil_sketch)