python - How to scrape google? -
so wanna scrape google, have scraped craigslist using method can't seam scrape google reason (yes of course changed class , stuff..) want scrape:
i want scrape websites description:
from selenium import webdriver path = r"c:\users\skid\desktop\chromedriver.exe" driver = webdriver.chrome(path) driver.get("https://www.google.com/#q=python+webscape+google") posts = driver.find_elements_by_class_name("r") post in posts: print(post.text)
solved, add timer (import time, time.sleep(2)) before scraping.
Comments
Post a Comment