title: DeprecationWarning: AppURLopener style of invoking requests is deprecated
body: <p>I wrote a program a while ago and it always was fine until I replaced my hard drive and had to reinstall everything.</p>
  
  <p>This is the code segment I guess that can't work anymore due to depreciation</p>
  
  <pre><code>class AppURLopener(urllib.request.FancyURLopener):
    version = "Mozilla/5.0"
  opener = AppURLopener()
  </code></pre>
  
  <p>I'm doing a google search request and I needed to use this because google blocks normal requests. I don't know how to replace this with anything to make it work again.</p>