Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to scrape bing search results using python

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

browser = webdriver.Firefox(executable_path='users/Adeleh/desktop/Projects/geckodriver.exe')

browser.get('http://www.bing.com')
assert 'bing' in browser.title

elem = browser.find_element(By.NAME, 'p')  # Find the search box
elem.send_keys('seleniumhq' + Keys.RETURN)

browser.quit()
 
PREVIOUS NEXT
Tagged: #scrape #bing #search #results #python
ADD COMMENT
Topic
Name
5+1 =