from bs4 import BeautifulSoup
import requests


def scrape_gecko_data(url: str) -> BeautifulSoup:
    """Helper method that scrape Coin Gecko site.

    Parameters
    ----------
    url : str
        coin gecko url to scrape e.g: "https://www.coingecko.com/en/discover"

    Returns
    -------
        BeautifulSoup object
    """

    req = requests.get(url)
    return BeautifulSoup(req.text, features="lxml")