|
import sys |
|
import os |
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__) or '.', '../')) |
|
import genericScrapers |
|
|
|
|
|
class ScraperImplementation(genericScrapers.GenericHTMLDisclogScraper): |
|
|
|
def __init__(self): |
|
super(ScraperImplementation, self).__init__() |
|
|
|
|
|
if __name__ == '__main__': |
|
print 'Subclass:', issubclass(ScraperImplementation, |
|
genericScrapers.GenericHTMLDisclogScraper) |
|
print 'Instance:', isinstance(ScraperImplementation(), |
|
genericScrapers.GenericHTMLDisclogScraper) |
|
ScraperImplementation().doScrape() |
|
|