Re: Get my airlines boarding pass
Good idea - I just bought the 2nd edition of the book and it is very good. Will check it out. Ken Alex Martelli wrote: > Ken <[EMAIL PROTECTED]> wrote: > > > rh0dium wrote: > > > Hi all, > > > > > > Has any of you fine geniuses figured out a nice python script to go to > > > the Southwest airlines website and check in, and retrieve your boarding > > > pass - automatically 24 hours in advance > > > > I just wrote such a script in python and tested it successfully. Where > > should I post it? > > Activestate's Python Cookbook sounds like a good venue for this. > > > Alex -- http://mail.python.org/mailman/listinfo/python-list
Re: Get my airlines boarding pass
I posted it on activestate already ... sorry. I would like for the geniuses here to use it and improve upon it so here is the activestate post URL: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496790 Enjoy. Ken BartlebyScrivener wrote: > >> SW air script > > Post it here, first, and these geniuses will improve it; then post it > on ActiveState. Besides, if you post it here first, I can use it. That > would be handy! > > Thanks, > > rpd -- http://mail.python.org/mailman/listinfo/python-list
Re: Get my airlines boarding pass
Okay, so too bad I didn't know about this before I wrote the 75 lines of code based on HTMLParser. That said, it still wasn't that hard and most of all it is done and it works so I won't be rewriting it. I did check it out and it seems quite powerful. I'll add it to my library of tools to use for the next python project. Thanks for the tip. - Ken Jonathan Ellis wrote: > KenAggie wrote: > > I posted it on activestate already ... sorry. I would like for the > > geniuses here to use it and improve upon it so here is the activestate > > post URL: > > > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496790 > > Whoa. Check out BeautifulSoup -- you will never write HTMLParser-based > screen scrapers again. :) > > -Jonathan -- http://mail.python.org/mailman/listinfo/python-list
Re: Screen Scraping for Modern Applications?
I just learned about a python library called BeautifulSoup in a thread responding to my Southwest Airlines script that I wrote and posted on the Python cookbook web site. I wrote my script using the provided HTMLParser class. BeautifulSoup could have saved me some time perhaps. Take a look. Feel free to browse my code for an example of how to use HTMLParser for a moderately involved project. BeautifulSoup link: http://www.crummy.com/software/BeautifulSoup/ My Southwest Boarding pass script link: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496790 Enjoy. - Ken [EMAIL PROTECTED] wrote: > Hello, > > I'm very new to python and still familiarizing myself with the > language, sorry if the post seems moronic or simple. > > For a side project I'm working on I need to be able to scrape a modern > computer desktop. Is there any basic material already available to do > this? I'd rather not need to write my own to interact with hardware. > > Thanks! -- http://mail.python.org/mailman/listinfo/python-list
Re: Evaluating a Function After X Seconds: Python Equivalent to JavaScript's SetTimeout() Function
Yea -- the "sched" class is exactly what you need. Just import sched and then use it to schedule a function call in the future, either using relative time or an absolute time. The python help file tells you how in detail. - Ken [EMAIL PROTECTED] wrote: > Hi all, > > Not exactly new to Python, just have not programmed a time dependent > function using it before. > > I imagine that many of you may also program some JavaScript and may be > familiar with JavaScript's SetTimeout( expression, after time interval > in milliseconds) function. Does Python have an equivalent to this? > > A SetTimeout-like Python function would be ideal for my application. > > > Best, > > Y-coci -- http://mail.python.org/mailman/listinfo/python-list