I am working on a scraper, I've made the class, and written the driver under if __name__ == '__main__': My question is, and sorry if it's basic, I'm newish to programming, why is it when I change that to def main(): , and include an if __name__ == '__main__': followed by main(), the program has errors.
I've done a little searching on the topic to get my own answers, but I think I'm not asking the question correctly. Thank you for any help you can give.
I've done a little searching on the topic to get my own answers, but I think I'm not asking the question correctly. Thank you for any help you can give.