I haven't coded in a team before and have had very few opportunities to learn from more experienced programmers. I find myself running into this a lot. Large if/else blocks, that have repeated partial parts.
Is there a pattern for this? I haven't been able to successfully google this sort of issue either.
This is a selenium scraper for an ERP system we use, and I'm trying to find specific URLS given an integer or a range of integers. Couldn't reproduce it here because of character limit.
* self.address is shorthand for browsing to a URL * self._transfer_session to requests() is to transfer the selenium session to a requests session.
https://pastebin.com/Ff93nKr1