Skip to content

Commit

Permalink
Add Pastebinscraper by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Samyak2 committed Oct 5, 2019
1 parent 641afb3 commit d00fc83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pastepwn/core/pastepwn.py
Expand Up @@ -10,6 +10,7 @@
from pastepwn.core import ScrapingHandler, ActionHandler
from pastepwn.core.pastedispatcher import PasteDispatcher
from pastepwn.util.request import Request
from pastepwn.scraping.pastebin import PastebinScraper


class PastePwn(object):
Expand Down Expand Up @@ -94,7 +95,8 @@ def start(self):
if self.__exception_event.is_set():
self.logger.error("An exception occured. Aborting the start of PastePwn!")
exit(1)

if self.scraping_handler.scrapers == []:
self.add_scraper(PastebinScraper)
self.scraping_handler.start()
self.paste_dispatcher.start()
self.action_handler.start()
Expand Down

0 comments on commit d00fc83

Please sign in to comment.