I am parsing an old state website for a project and I cannot get the python code to work.
I have typed in the code I made back into the developer console and it works perfectly there but in python it just returns:
C:\Python27\pyt hon.exe "C:/Users/corinne/PycharmProjects/scc docket/SCC V1.py"
[]
Process finished with exit code 0
The code I have created is:
can anyone please help me??
I have typed in the code I made back into the developer console and it works perfectly there but in python it just returns:
C:\Python27\pyt hon.exe "C:/Users/corinne/PycharmProjects/scc docket/SCC V1.py"
[]
Process finished with exit code 0
The code I have created is:
Code:
from lxml import html
import requests
page = requests.get('http://www.scc.virginia.gov/docketsearch#dailyFilings')
tree = html.fromstring(page.text)
dailyFilings = tree.xpath('//*[contains(@class,"details-brief")]//td[1]/text()')
print dailyFilings
Comment