I am trying to access a website using selenium, but I got denied. I am running on windows computer.
The message I got when trying to access the website:
You don’t have permission to access "http://www.blibli.com/login?" on this server.
Is there anything I can do to access it using selenium?
Below is my code:
from selenium import webdriver from time import sleep CHROME_DRIVER_PATH = "C:Developmentchromedriver_win32chromedriver.exe" URL = "https://www.blibli.com/member/order/retail/ongoing" EMAIL = "[email protected]" BLIBLI_PASSWORD = "Ricky268928" class Blibli: def __init__(self): self.driver = webdriver.Chrome(executable_path=CHROME_DRIVER_PATH) def login(self): self.driver.get(URL) def get_data(self): pass bot = Blibli() bot.login() bot.get_data()
Source: Python-3x Questions