79300642

Date: 2024-12-22 07:45:42
Score: 2
Natty:
Report link

I can't comment so I am going to just use the answer...

Could you try using Undetected Chromedriver? It at least will solve the captcha when you open the website. I ran the code but I am not sure exactly what output you are looking for. If you could guide me I could try to help some more. Here is the code

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import undetected_chromedriver as uc
import time
import pandas as pd
import requests
from bs4 import BeautifulSoup


url = "https://www.valueresearchonline.com/login/?site-code=VROL&target=%2F&utm_source=home&utm_medium=vro&utm_campaign=desktop-profile-menu/"

options = uc.ChromeOptions()
options.headless = False
driver = uc.Chrome(options=options)

driver.get(url)
driver.implicitly_wait(5)

# Click the button 'Login with password' (step 1)
login_button1 = driver.find_element(By.CSS_SELECTOR, "button[data-user='Log in with password']")
login_button1.click()

# Define login credentials
username = '[email protected]'
# Find the username input field and submit button (step 2)
username_field = driver.find_element(By.NAME, 'username')
# Enter the username into the field
username_field.send_keys(username)

login_button2 = driver.find_element(By.CSS_SELECTOR, "button[id='proceed-btn']")
# Submit the username to go to the password page
login_button2.click()

Reasons:
  • Blacklisted phrase (1): guide me
  • RegEx Blacklisted phrase (1): can't comment
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Explants