I'm trying to scrape information from a website. I put the info into a list, but when I print the list, it looks something like this:
list = ['text \n\n more text (1) \n\n even more text \n\n']
As you can see, nothing is separated. I want the list to look something like this:
list = ['text','more text (1)', 'even more text']
I tried doing list = [i.split('\n\n') for i in list]
but that didn't work. The result was :
list = [text ',' more text (1) ',' even more text]
How can I fix this?
Thank you in advance for taking the time to read my question and help in any way you can. I appreciate it