Troubleshoot headless python selenium script

Job ID: 34339778

Budget: $30 – $250 USD

script works fine without headless option.
Once I add the line for headless, it breaks:

options.add_argument("--headless")

2 small tasks for this project:

1. fix headless from breaking
2. optimize speed of script, if possible.
Related categories: Python Web Scraping BeautifulSoup Selenium