I'm trying to get date from this website which has .txt in the URL. I'm a python newbie and just started last week. Here's the link:
http://regsho.finra.org/FNSQshvol20171121.txt
I tried using pandas, requests.get, and BeautifulSoup to get the data which I think I did it right. The next problem is...How can I index and play around with the data I just got. Here are my codes
page = requests.get('http://regsho.finra.org/FNSQshvol20171121.txt')
soup = BeautifulSoup(page.text, 'html.parser')
print(soup.prettify())
OR
import pandas as pd
list = pd.read_table('http://regsho.finra.org/FNSQshvol20171121.txt')
list.head()
list.columns
How can I index the data I got from the website or select just certain columns?
list['Date', 'Symbol']
list[5:12]
and so on.
Please help! I feel like there should be a simpler way and I do not have to go to a hard route.
Any help is really appreciated!