这是我到目前为止所拥有的。
从硒导入网络驱动程序
InstaBot类:def init(自身):self.driver = webdriver.chrome()self.driver.get(“ https://instagram.com”)
InstaBot()
from selenium.webdriver import Chrome
with Chrome() as driver:
driver.get('https://instagram.com')
... # Add logic here...