开发者

How to search for specific text from a website, retrieve and use it with google app engine (python)?

开发者 https://www.devze.com 2023-03-06 19:59 出处:网络
I\'m trying to retrieve basically this block of text from 开发者_JAVA百科www.crossfit.com. Monday 110516

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消