mirror of
https://github.com/bellingcat/cisticola.git
synced 2026-06-13 05:48:33 +03:00
Archive media in dictionary
This commit is contained in:
6
test.py
6
test.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user