Archive media in dictionary

This commit is contained in:
Logan Williams
2022-02-24 17:35:24 +01:00
parent a87cfd570a
commit 214287b7a8
4 changed files with 15 additions and 16 deletions

View File

@@ -1,7 +1,3 @@
# TODO/TODECIDE:
# should 'username' be a part of the Channel definition somehow?
# still need to do some planning for handling media
import cisticola
import cisticola.scraper.telegram_snscrape
@@ -35,7 +31,7 @@ controller = cisticola.ScraperController()
scraper = cisticola.scraper.telegram_snscrape.TelegramSnscrapeScraper()
controller.register_scraper(scraper)
engine = create_engine('sqlite:///test3.db')
engine = create_engine('sqlite:///test4.db')
controller.connect_to_db(engine)
controller.scrape_channels(test_channels)