AZLyrics
AZLyrics (opens in a new tab)是一个庞大的、合法的、每天都在增长的歌词收集。
本节介绍了如何将AZLyrics网页加载到我们可以在下游使用的文档格式中。
from langchain.document_loaders import AZLyricsLoader
loader = AZLyricsLoader("https://www.azlyrics.com/lyrics/mileycyrus/flowers")
data = loader.load()
data
[Document(page_content="Miley Cyrus - Flowers Lyrics | AZLyrics.com\n\r\nWe were good, we were gold\nKinda dream that can't be sold\nWe were right till we weren't\nBuilt a home and watched it burn I didn't wanna leave you\nI didn't wanna lie\nStarted to cry but then remembered I I can buy myself flowers\nWrite my name in the sand\nTalk to myself for hours\nSay things you don't understand\nI can take myself dancing\nAnd I can hold my own hand\nYeah, I can love me better than you can Can love me better\nI can love me better, baby\nCan love me better\nI can love me better, baby Paint my nails, cherry red\nMatch the roses that you left\nNo remorse, no regret\nI forgive every word you said I didn't wanna leave you, baby\nI didn't wanna fight\nStarted to cry but then remembered I I can buy myself flowers\nWrite my name in the sand\nTalk to myself for hours, yeah\nSay things you don't understand\nI can take myself dancing\nAnd I can hold my own hand\nYeah, I can love me better than you can Can love me better\nI can love me better, baby\nCan love me better\nI can love me better, baby\nCan love me better\nI can love me better, baby\nCan love me better\nI I didn't wanna wanna leave you\nI didn't wanna fight\nStarted to cry but then remembered I I can buy myself flowers\nWrite my name in the sand\nTalk to myself for hours (Yeah)\nSay things you don't understand\nI can take myself dancing\nAnd I can hold my own hand\nYeah, I can love me better than\nYeah, I can love me better than you can, uh Can love me better\nI can love me better, baby\nCan love me better\nI can love me better, baby (Than you can)\nCan love me better\nI can love me better, baby\nCan love me better\nI\n", lookup_str='', metadata={'source': 'https://www.azlyrics.com/lyrics/mileycyrus/flowers'}, lookup_index=0)]