I'm trying to retrieve basically this block of text from 开发者_JAVA百科www.crossfit.com.
Monday 110516
Complete as many rounds as possible in five minutes of:
275 pound Deadlift, 3 reps
115 pound Push press, 7 reps
It's basically just the date (Monday yymmdd), and a short description of a workout. The site updates daily with a new workout. I want to write a google app using the python version that will pull the daily workout automatically. Where should I start? I followed along google's helloworld example and that's about as much as I know about html, python, and google apps.
Instead of parsing the HTML yourself, use the already provided XML feed: http://www.crossfit.com/index.xml.
You can parse the XML feed in python 2.5 with xml.etree.ElementTree.
精彩评论