[問題] Python Selenium爬蟲問題

作者: incessantgas (我要吃好料)   2018-08-03 04:13:07
請教各位高手,目前執行下面幾行指令:
from selenium import webdriver
from bs4 import BeautifulSoup
import re
import time
import os
ELE = []
browser = webdriver.Chrome('C:\webdrivers\chromedriver.exe')
webdriver.get('https://xxx.com/tweets/?q=Action+mobile&fsb=journalists#')
作者: eri820503 (snoopyahoo)   2018-08-03 08:09:00
driver.get('網址')browser.get('網址')才對
作者: sapc87952 (阿家)   2018-08-03 10:10:00
你定義browser = webdriver.Chrome 後面的指令就應該是browser.get而不是你沒定義的webdriver
作者: incessantgas (我要吃好料)   2018-08-03 11:01:00
太感謝了,這裡卡超久的,謝謝你們

Links booklink

Contact Us: admin [ a t ] ucptt.com