Source code for mchartanalyzer.scrapestrategy

from abc import ABC, abstractmethod

[docs]class ScrapeStrategy(ABC): """ Abstract base class, representing a strategy for navigating a particular website. One concrete subclass should be implemented for each website we're interested in. """ @abstractmethod def _formatArtistName(self, artistName): pass @abstractmethod def getSourceName(self): pass @abstractmethod def getArtistUrl(self, artistName): pass @abstractmethod def getSongUrlsForArtist(self, artistName): pass @abstractmethod def getSongTitle(self, bSoup): pass