@@ -0,0 +1,1132 @@
+'''%0AThis script is created to search on facebook using terminal%0A'''%0A%0Afrom selenium import webdriver%0Afrom selenium.webdriver.common.keys import Keys%0Afrom time import sleep%0Afrom selenium.common.exceptions import TimeoutException%0Afrom selenium.webdriver.support.ui import WebDriverWait%0Afrom selenium.webdriver.support.ui import Select%0Afrom selenium.webdriver.common.by import By%0Afrom selenium.webdriver.support import expected_conditions%0Afrom selenium.common.exceptions import NoSuchElementException%0A %0Ausr=input('Enter your email id: ')%0Apwd=input('enter your password: ')%0Aquery=input('enter search query: ')%0A%0A%0Adriver = webdriver.Chrome()%0Adriver.get('https://www.facebook.com/')%0Aprint(%22Opened facebook...%22)%0A%0Asleep(1)%0Aa = driver.find_element_by_id('email')%0Aa.send_keys(usr)%0Aprint(%22Email Id entered...%22)%0A%0Ab = driver.find_element_by_id('pass')%0Ab.send_keys(pwd)%0Aprint(%22Password entered...%22)%0A%0Ac = driver.find_element_by_id('loginbutton')%0Ac.click()%0Aprint(%22Logged In...%22)%0A%0Asleep(1)%0A%0Asearch_box=driver.find_element_by_name('q')%0Asearch_box.send_keys(query)%0Asearch_box.submit()%0Aprint(%22Searched...%22)%0A%0Asleep(10)%0A%0Adriver.quit()%0A%0Aprint(%22Game Over%22)%0A%0A

Create fb_search.py