title: Can't run python beautifulsoup web scraping program because of OSError
body: <p>I am trying to web scrape an Instagram account and i am getting an error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:/Users/User/Desktop/python/webscraper.py&quot;, line 11, in &lt;module&gt;
      browser = webdriver.Chrome(r&quot;C:\Users\User\Downloads\chromedriver_win32.zip&quot;)
    File &quot;C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py&quot;, line 73, in __init__
      self.service.start()
    File &quot;C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\common\service.py&quot;, line 72, in start
      self.process = subprocess.Popen(cmd, env=self.env,
    File &quot;C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py&quot;, line 854, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File &quot;C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py&quot;, line 1307, in _execute_child
      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
  OSError: [WinError 193] %1 is not a valid Win32 application
  </code></pre>
  <p>I am trying to run this code:</p>
  <pre><code>from selenium import webdriver
  from bs4 import BeautifulSoup as bs
  import time
  import re
  from urllib.request import urlopen
  import json
  from pandas.io.json import json_normalize
  import pandas as pd, numpy as np
  
  username='dailydogsnapz'
  browser = webdriver.Chrome(r&quot;C:\Users\User\Downloads\chromedriver_win32.zip&quot;)
  browser.get('https://www.instagram.com/'+username+'/?hl=en')
  Pagelength = browser.execute_script(&quot;window.scrollTo(0, document.body.scrollHeight);&quot;)
  </code></pre>
  <p>I don't understand what i am doing wrong. I have tried looking up this error but none of the solutions on GitHub or other stack overflow question are solving the problem.</p>