This collection of scripts is designed to extract TV programming lineups from the Flemish public broadcasters. The main script, main.py, is responsible for executing this extraction process.
To run main.py, ensure your environment is equipped with the necessary packages and their corresponding versions. This script does not require daily execution as it retrieves programming data for the past 7 days and the upcoming 7 days, providing a comprehensive lineup spanning 15 days centered around the execution date.
Firefox Driver Initialization: The script utilizes Firefox driver to initialize headless browsers. Therefore, it requires a Firefox geckodriver. Ensure you have geckodriver installed, and specify its path in main.py for seamless execution.
Once the setup is complete, execute main.py to initiate the TV programming lineup extraction process.
Geckodriver Path Configuration: Ensure the correct path to the geckodriver is provided in main.py to avoid any errors during execution.
If everything is set up correctly, this program is all you need to run to get 15 days of programming lineup.
This section houses the essential programs required for main.py:
get_urls.py: A function that generates a list of URLs for a specified channel and date range.
get_programs.py: This function processes a list of URLs, returning a dataframe containing the programming lineup for those URLs.
enrich_data.py: A function that enhances the dataframe with enriched data, providing additional insights.