Spaces:
Sleeping
Sleeping
File size: 583 Bytes
dbaa71b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import logging
import sys
from obsei.source.facebook_source import FacebookSource, FacebookSourceConfig
logger = logging.getLogger(__name__)
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
source_config = FacebookSourceConfig(page_id="110844591144719", lookup_period="2M")
source = FacebookSource()
source_response_list = source.lookup(source_config)
logger.info("DETAILS:")
for source_response in source_response_list:
logger.info(source_response)
logger.info("TEXT:")
for source_response in source_response_list:
logger.info(source_response.processed_text)
|