79158162

Date: 2024-11-05 08:19:29
Score: 0.5
Natty:
Report link

Thank you, I have been trying to find an answer to this for the last 4 hours scanning every page I can. I have tried about 10 different solutions. The problem is most of them are old. My solution does not need webdriver as it is built into Chrome now. Here is my code for reference for those looking for answers.

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = webdriver.ChromeOptions()
options.add_argument("user-data-dir=C:\\Users\\<user>\\AppData\\Local\\Google\\Chrome\\User Data")
options.add_argument("--profile-directory=Default")
options.add_argument('--disable-gpu')
options.add_argument("--no-sandbox")
myurl  = 'https://finance.yahoo.com/portfolio/p_4/view/view_6'
driver.get(myurl)
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Asmodeuss