src/bto_sbf_webscraper/scraper.py
def scrape(selection_type, launch_date, flat_type=None, town=None):
    """Retrieves all the links to scrape and scrapes them

    Args:
        selection_type (str): SBF / OBF / BTO
        launch_date (str): Date of ballot / Sales Launch
        flat_type (str, optional): Number of rooms of flat. Defaults to None.
        town (str, optional): Town of flat. Defaults to None.

    Returns:
        list (dict): Returns list of dictionaries containing all the blocks and units for all links
    """
    click.secho("\nStarting to scrape for...", fg="yellow")
    click.secho(
        f"Type : {selection_type}, Launch Date : {launch_date}, "
        f"Flat Type : {flat_type if flat_type else 'All'} Room, "
        f"Town : {town if town else 'All'}",
    )
    links = get_links_to_scrape(selection_type, launch_date, flat_type, town)
    data = scrape_links(links)
    return data
Retrieves all the links to scrape and scrapes them

    Args:
        selection_type (str): SBF / OBF / BTO
        launch_date (str): Date of ballot / Sales Launch
        flat_type (str, optional): Number of rooms of flat. Defaults to None.
        town (str, optional): Town of flat. Defaults to None.

    Returns:
        list (dict): Returns list of dictionaries containing all the blocks and units for all links
    
Retrieves all the links to scrape and scrapes them
Retrieves all the links to scrape and scrapes them
def scrape(selection_type, launch_date, flat_type=None, town=None):
    click.secho("\nStarting to scrape for...", fg="yellow")
    click.secho(
        f"Type : {selection_type}, Launch Date : {launch_date}, "
        f"Flat Type : {flat_type if flat_type else 'All'} Room, "
        f"Town : {town if town else 'All'}",
    )
    links = get_links_to_scrape(selection_type, launch_date, flat_type, town)
    data = scrape_links(links)
    return data
def scrape ( selection_type , launch_date , flat_type = None , town = None ) : click . secho ( "\nStarting to scrape for..." , fg = "yellow" ) click . secho ( f"Type : {selection_type}, Launch Date : {launch_date}, " f"Flat Type : {flat_type if flat_type else 'All'} Room, " f"Town : {town if town else 'All'}" , ) links = get_links_to_scrape ( selection_type , launch_date , flat_type , town ) data = scrape_links ( links ) return data
Retrieves all the links to scrape and scrapes them
Retrieves all the links to scrape and scrapes them
"""Retrieves all the links to scrape and scrapes them

    Args:
        selection_type (str): SBF / OBF / BTO
        launch_date (str): Date of ballot / Sales Launch
        flat_type (str, optional): Number of rooms of flat. Defaults to None.
        town (str, optional): Town of flat. Defaults to None.

    Returns:
        list (dict): Returns list of dictionaries containing all the blocks and units for all links
    """
list (dict): Returns list of dictionaries containing all the blocks and units for all links
list ( dict ) : Returns list of dictionaries containing all the blocks and units for all links
selection_type
SBF / OBF / BTO
SBF / OBF / BTO
launch_date
Date of ballot / Sales Launch
Date of ballot / Sales Launch
flat_type
Number of rooms of flat. Defaults to None.
Number of rooms of flat . Defaults to None .
None
town
Town of flat. Defaults to None.
Town of flat . Defaults to None .
None