diff --git a/capturer/capturer.py b/capturer/capturer.py index 52a03f4..13a4023 100644 --- a/capturer/capturer.py +++ b/capturer/capturer.py @@ -278,3 +278,7 @@ class AdHtmlParser: data[ad_field] = self.ad_fields[ad_field]['value'] return data + +if __name__ == 'main': + capturer = Capturer() + capturer.start() \ No newline at end of file diff --git a/explorer/explorer.py b/explorer/explorer.py index 03c2854..4484943 100644 --- a/explorer/explorer.py +++ b/explorer/explorer.py @@ -278,5 +278,9 @@ class ExploringTask: else: return None - + + +if __name__ == 'main': + explorer = Explorer() + explorer.start()