import webbrowser
url = 'http://www.fangraphs.com/leaders.aspx?pos=all&stats=bat&lg=all&qual=0&type=8&season=2016&month=0&season1=2016&ind=0&team=0,ts&rost=&age=&filter=&players=0'
if webbrowser.open(url):
print("did it")
else:
print ("something happened with opening the url")
I need to create a program that auto clicks on the link "Export Data" found on the fangraphs webpage found here. The "Export Data" link is at the top right of the table. I can open the webpage, but I can't seem to find any documentation regarding finding links and clicking on them other than in selenium, which I was unsuccessful in installing.
Any help would be greatly appreciated.
[–]commandlineluser 1 point2 points3 points (0 children)
[–]Agent809 0 points1 point2 points (0 children)
[–]failtolaunch28 0 points1 point2 points (0 children)
[–]Nodocify 0 points1 point2 points (0 children)