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 767 posted 15 years ago by mustam
How to concatenate lists, add an item to a list, slice an item from a list.
0 825 posted 15 years ago by chrisaiv
find great websites by scraping links from delicious.com
0 927 posted 15 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 1193 posted 15 years ago by halotis
prints out the RSS reach, circulation, and hits for a feedburner feed.
0 739 posted 15 years ago by halotis
from activestate. not complete or tested but good ref
0 764 posted 15 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 826 posted 15 years ago by rix
0 691 posted 15 years ago by laurenceosx
0 742 posted 15 years ago by voyeg3r
0 575 posted 15 years ago by pats
For some reason it took me a bit to realize that you had to use datetime.datetime
0 784 posted 15 years ago by iloveitaly
Useful for SBApplication scripting bridge.
0 1221 posted 15 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 772 posted 15 years ago by ndnichols
0 1056 posted 15 years ago by atr000
I see almost all GET, so this is handy to have around
0 945 posted 15 years ago by atr000
0 890 posted 15 years ago by phalkunz
Turns the list [1,2,3] to ['1','2','3']
0 826 posted 15 years ago by fnurl
0 618 posted 15 years ago by iamok
0 585 posted 15 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 1016 posted 15 years ago by fnurl
1 ... 11 12 13 14 15 ... 18