mirror of
https://github.com/bellingcat/cisticola.git
synced 2026-06-13 05:48:33 +03:00
added methods for extracting channel profile metadata, and tests
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import pytest
|
||||
|
||||
from cisticola.base import Channel
|
||||
from cisticola.scraper import RumbleScraper
|
||||
|
||||
@@ -14,3 +16,10 @@ def test_scrape_rumble_channel(controller, channel_kwargs):
|
||||
channels = [Channel(**channel_kwargs['rumble'])]
|
||||
controller.register_scraper(scraper = RumbleScraper())
|
||||
controller.scrape_channels(channels = channels, archive_media = True)
|
||||
|
||||
@pytest.mark.profile
|
||||
def test_scrape_rumble_profile(channel_kwargs):
|
||||
|
||||
scraper = RumbleScraper()
|
||||
channel = Channel(**channel_kwargs['rumble'])
|
||||
scraper.get_profile(channel=channel)
|
||||
Reference in New Issue
Block a user