1

I wrote a program a while ago and it always was fine until I replaced my hard drive and had to reinstall everything.

This is the code segment I guess that can't work anymore due to depreciation

class AppURLopener(urllib.request.FancyURLopener):
  version = "Mozilla/5.0"
opener = AppURLopener()

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.

  • 3
    Why doesn't it work anymore? Deprecated means it still works, but it might go away in a future version, so you should update it. – Barmar Dec 08 '18 at 01:37
  • Oh I guess there is something else wrong with it that I have to figure out. Weird – qwetjipgjiW3 Dec 08 '18 at 01:41
  • FYI, `FancyURLOpener` was deprecated since Python 3.3. So I guess you must have upgraded from an old version of Python. If you upgraded from Python 2.x, there are many incompatible changes that could be causing your problems. – Barmar Dec 08 '18 at 01:44

1 Answers1

1

The issue with my program is different than I thought it was. This isn't causing the problem.