Welcome To Snipplr


Everyone's Recent Snippets Tagged python



Calculadora de Área que soporta Cuadrado, Rectángulo, Triángulo, Círculo y Rombo.
0 978 posted 11 years ago by a7xrturo
A program I wrote for data analysis during my final project at university.
0 562 posted 11 years ago by dancohen990
Place this snippent in your script, and call it like this: urllib.urlretrieve(getFile, saveFile, reporthook=report) Notice it is the 3rd argument that calls the function on each file that needs to be downloaded.
1 2012 posted 11 years ago by o0110o
1 754 posted 11 years ago by MrBlaise
Web crawling Yelp for personalized food recommendations
0 732 posted 11 years ago by richyeung
Makes working with JSON data, in my eyes, easier in Python. Instead of json_data['key']['key']['key'] Do json_data.key.key.key This can also be modified to work the same way with dict types.
1 867 posted 11 years ago by plainwreck
A script to parse emails and return HTML suited for email blast programs
0 818 posted 11 years ago by drydenlong
This is a python script that allows you to scrape historical player names and links from NBA.com historical data
1 841 posted 11 years ago by asimmittal
This allows you to take a node that has expressions in it and create copies of them that are hard pathed. It will also disable said expression driven write nodes and disable them.
0 868 posted 11 years ago by throb
*Does not check permissions. python cleanFiles.py --directory=/home/win98/tmp/ --ageInDays=2
0 768 posted 11 years ago by djmornyc
batch accounts import into discuz with python
0 1290 posted 11 years ago by dylanninin
Snippet to show how works optparse module to add optoins when it is called by command line
0 880 posted 11 years ago by ssoton
This portion of code allows to do bandpass filtering over time series
0 631 posted 11 years ago by leonpalafox
Snippet showing a simple Flask application to illustrate the topics covered in the "Quickstart".
0 912 posted 12 years ago by denakitan
snippet to show appindicator problem
0 756 posted 12 years ago by ssoton
A python static class that handles simple thread management.
0 783 posted 12 years ago by ytech
Extremely simple snippet showing the basic structure of a Python program.
1 934 posted 12 years ago by denakitan
This is a simple IRC bot connecting with SSL.
0 1321 posted 12 years ago by zhyar
Simple web parser using urllib and re libs.
1 865 posted 12 years ago by zhyar
Require the ID3 lib. Place the script in the directory containing the mp3 files.
0 597 posted 12 years ago by zhyar
Returns 5 random alphanumeric strings of arbitrary size.
0 800 posted 12 years ago by zhyar
I had hear about a method to run a method like an executable, with the arguments being passed in from the commandline. Apparently, Ruby has this with the Rake project. Well, Python has it with [Shovel](http://devblog.seomoz.org/2012/03/shovel-rake-fo...
0 899 posted 12 years ago by pckujawa
0 670 posted 12 years ago by akus85
Making a python process exit with error code 1 after 30 seconds. Exit is unclean (no garbage is collected, no flushed buffers, etc...).
0 1164 posted 12 years ago by jarnaldich
Capture Web Screenshots easily with the [GrabzIt ](http://grabz.it/) Python API You will need the free [GrabzIt Code Library](http://grabz.it/api/python/download.aspx) to get started.
1 934 posted 12 years ago by Maximus1983
Simple animation in C4D (R13) consisting of moving a cube from state 1 to state 2 with Python.
0 1062 posted 12 years ago by adarpodracir
A function that adds gamma attribs to the image files that are 8 bit in nature (aka not EXR or HDR) so that you can get to a linear workflow easily
0 888 posted 12 years ago by throb
Two ways of printing a message backwards using either string slicing, or list() function.
0 710 posted 12 years ago by jdsantiagojr
A simple python password generator...
0 834 posted 12 years ago by p1p1092
I started messing around with the Last.fm API and somehow just started building more and more service requests. This should be enough to get anyone started on using Last.FM's API
0 1149 posted 12 years ago by chrisaiv