Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- table = pd.read_html("http://www.sharesansar.com/c/today-share-price.html")
- dfs = pd.DataFrame(data = table)
- print dfs
- 0 S.No ...
- for df in dfs:
- print df
- import pandas as pd
- import dryscrape
- s = dryscrape.Session()
- s.visit("http://www.sharesansar.com/c/today-share-price.html")
- df = pd.read_html(s.body())[5]
- df.head()
- import pandas as pd
- import dryscrape
- dryscrape.start_xvfb()
- s = dryscrape.Session()
- s.visit("http://www.sharesansar.com/c/today-share-price.html")
- # df = pd.read_html(s.body())[5]
- # df.head()
- df = pd.read_html(s.body())[4]
- print(df)
Add Comment
Please, Sign In to add comment