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\python.exe "C:/Users/corinne/PycharmProjects/scc docket/SCC V1.py"
[]
Process finished with exit code 0
The code I have created is:
Expand|Select|Wrap|Line Numbers
- 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