No reptiles interface

I tried one night, to pay the price of 4:00, endless mode is against me.

Why inadvertently found the way to the black box, while the other looked at bloggers blog, found a headless posts.

Exactly the same as before.

Why I try once again, you have won?

why!

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--disable-gpu')#上面三行代码就是为了将Chrome不弹出界面,实现无界面爬取
browser = webdriver.Chrome(chrome_options=chrome_options)

 

Published 40 original articles · won praise 0 · Views 2611

Guess you like

Origin blog.csdn.net/weixin_37281967/article/details/104401531