mirror of
https://github.com/bellingcat/cisticola.git
synced 2026-06-11 12:58:33 +03:00
15 lines
641 B
Python
15 lines
641 B
Python
from cisticola.base import Channel
|
|
from cisticola.scraper import TelegramTelethonScraper
|
|
|
|
def test_scrape_telegram_telethon_channel_no_media(controller, channel_kwargs):
|
|
|
|
channels = [Channel(**channel_kwargs['telegram'])]
|
|
controller.register_scraper(scraper = TelegramTelethonScraper())
|
|
controller.scrape_channels(channels = channels, archive_media = False)
|
|
|
|
def test_scrape_telegram_telethon_channel(controller, channel_kwargs):
|
|
|
|
channels = [Channel(**channel_kwargs['telegram'])]
|
|
controller.register_scraper(scraper = TelegramTelethonScraper())
|
|
controller.scrape_channels(channels = channels, archive_media = True)
|