Welcome To Snipplr


Everyone's Recent Python Snippets



1 ... 11 12 13 14 15 ... 18
e.g. <pre> $ twlog.py user twitter account name: user Now logging start, take several times. r u OK? [y/N]: y DEBUG: make dir: twitter-log-user DEBUG: get log: page=1 DEBUG: new tweet: 21, accum. tweet: 21 DEBUG: remain hits: 149 DEBUG: writ...
1 507 posted 14 years ago by mustam
How to concatenate lists, add an item to a list, slice an item from a list.
0 585 posted 14 years ago by chrisaiv
find great websites by scraping links from delicious.com
0 646 posted 14 years ago by halotis
lookup the google page rank of a website from python. Uses the same interface that the Google Toolbar uses to get the value.
0 862 posted 14 years ago by halotis
prints out the RSS reach, circulation, and hits for a feedburner feed.
0 499 posted 14 years ago by halotis
from activestate. not complete or tested but good ref
0 507 posted 14 years ago by atr000
A Django model manager capable of using different database connections. Inspired by: * [Eric Florenzano](http://www.eflorenzano.com/blog/post/easy-multi-database-support-django/) * [Kenneth Falck](http://kfalck.net/2009/07/01/multiple-data...
1 583 posted 14 years ago by rix
0 485 posted 14 years ago by laurenceosx
0 473 posted 14 years ago by voyeg3r
0 377 posted 14 years ago by pats
For some reason it took me a bit to realize that you had to use datetime.datetime
0 527 posted 14 years ago by iloveitaly
Useful for SBApplication scripting bridge.
0 895 posted 14 years ago by iloveitaly
This is a @property to take care of jsonp stuff if you're using CherryPy. In your Javascript, (you're using JQuery, right?) you can do ` $.ajax({url:"localhost:8080/MyMethod", data:{'arg1':'foo'}, dataType:"jsonp", success:onMyMethodComplete}); `...
0 530 posted 14 years ago by ndnichols
I see almost all GET, so this is handy to have around
0 669 posted 14 years ago by atr000
0 611 posted 14 years ago by phalkunz
Turns the list [1,2,3] to ['1','2','3']
0 563 posted 14 years ago by fnurl
0 416 posted 14 years ago by iamok
0 377 posted 14 years ago by iamok
I made this ;) Python's operator class is what you need to know if you want to avoid using lambda functions or define your own helper functions in many cases.
1 758 posted 15 years ago by fnurl
1 ... 11 12 13 14 15 ... 18