def search_genius_web(self, search_term, per_page=5):
        """Use the web-version of Genius search"""
        endpoint = "search/multi?"
        params = {'per_page': per_page, 'q': search_term}

        # This endpoint is not part of the API, requires different formatting
        url = "https://genius.com/api/" + endpoint + urlencode(params)
        response = requests.get(url, timeout=self.timeout)
        time.sleep(max(self._SLEEP_MIN, self.sleep_time))
        return response.json()['response'] if response else None
def search_genius_web ( self , search_term , per_page = 5 ) : endpoint = "search/multi?" params = { 'per_page' : per_page , 'q' : search_term } url = "https://genius.com/api/" + endpoint + urlencode ( params ) response = requests . get ( url , timeout = self . timeout ) time . sleep ( max ( self . _SLEEP_MIN , self . sleep_time ) ) return response . json ( ) [ 'response' ] if response else None
Use the web-version of Genius search