refactor: use `self.parser` instead `utilities.get-*`
moonlitgrace opened this issue · comments
Use self.parser.*
instead functions from utilities
.
eg: instead this code
https://github.com/tokitou-san/MangaAPI/blob/cccbcb6437861ebaf8aea7ef3d52bd00881cc3be/app/api/scrapers/popular.py#L16
Do something like ( might different for other cases )
slug = self.parser.css("div#manga-trending div.swiper-slide a.link-mask").attributes["href"]
Lmk if you want more info or anything :)
Instead create a helper class to fix this.
Closing this*