Created
November 23, 2017 09:42
-
-
Save hemangsk/1c7bedb01bc3211b61d29e25227d2e19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# In[1]: | |
import requests | |
# In[4]: | |
r = requests.get('https://enquiry.indianrail.gov.in/xyzabc/LiveStation?stnCode=DLI&toStnCode=&withinHrs=2&trainType=ALL&scrnSize=s&langFile=props.en-us') | |
r.text | |
# In[5]: | |
r | |
# In[6]: | |
r.headers | |
# In[7]: | |
r.text | |
# In[9]: | |
from bs4 import BeautifulSoup | |
# In[12]: | |
soup = BeautifulSoup(r.text, "html5lib") | |
# In[26]: | |
soup.find_all('table', {'class': }) | |
# In[24]: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment