Is there a dataset containing a group of poems in English? I couldn't find any resource online. I could web scrape poetry sites, but I want to avoid copyright issues and even a dataset of older poems would do
Probably more useful is to use a wrapper library like Python's Gutenberg. In this case, you would feed a list of e-book IDs (e.g. 12924) from the Bookshelf link to a python code, then download all the TXT data.
from gutenberg.acquire import load_etext from gutenberg.cleanup import strip_headers id_list = [12924, 16786] # better is to read a parameter file for id_nr in id_list: # loop over list text = strip_headers(load_etext(id_nr)).strip() # actually do something with `text`
Other languages have wrappers, too.