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.