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 1625 posted 17 years ago by mustam
0 1791 posted 17 years ago by chrisaiv
How to concatenate lists, add an item to a list, slice an item from a list.
0 1728 posted 17 years ago by chrisaiv
find great websites by scraping links from delicious.com
0 1755 posted 17 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 2328 posted 17 years ago by halotis
prints out the RSS reach, circulation, and hits for a feedburner feed.
0 1606 posted 17 years ago by halotis
from activestate. not complete or tested but good ref
0 1639 posted 17 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 1673 posted 17 years ago by rix
0 1372 posted 17 years ago by laurenceosx
0 1545 posted 17 years ago by voyeg3r
0 1346 posted 17 years ago by pats
For some reason it took me a bit to realize that you had to use datetime.datetime
0 1746 posted 17 years ago by iloveitaly
Useful for SBApplication scripting bridge.
0 2351 posted 17 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 1570 posted 17 years ago by ndnichols
0 2004 posted 17 years ago by atr000
0 1673 posted 17 years ago by atr000
I see almost all GET, so this is handy to have around
0 1853 posted 17 years ago by atr000
0 1929 posted 17 years ago by phalkunz
Turns the list [1,2,3] to ['1','2','3']
0 1823 posted 17 years ago by fnurl
0 1458 posted 17 years ago by iamok
0 1358 posted 17 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 2045 posted 17 years ago by fnurl
1 ... 11 12 13 14 15 ... 18