lyrics static method
Uses beautiful_soup to scrape song lyrics off of a Genius song URL
Implementation
static Future<String?> lyrics({required String url}) async {
String responseBody = (await http.get(Uri.parse(Uri.encodeFull(url)))).body;
BeautifulSoup bs = BeautifulSoup(responseBody.replaceAll('<br/>', '\n'));
return bs
.findAll('div', class_: 'Lyrics__Container')
.map((e) => e.getText().trim())
.join('\n');
}