Tag : python
|Pandora for Food – Crawl Yelp for personalized recommendations||richyeung||Python||python||
This is just a fun little script that acts like a Pandora for food. Its implementation is simplistic. You choose a set of restaurants on Yelp that you like, and the script finds all reviewers that gave these restaurants 5 stars. You trust these reviewers because they share your awesome taste in food. The script then spits out all restaurants that these "trusted reviewers" also reviewed, and their rating for each review.
You would need a few additional lines of code to turn the scrapy output into a sorted list of restaurants. For example, the code below will sort restaurants by number of "trusted reviewers": \n import pandas \n reviews = pandas.readcsv('scrapyoutput.csv') fiveStarReviews = reviews[reviews['rating']==5] fiveStarReviews.restaurant.value_counts()
There are countless ways you can improve on this. One obvious one is you would want to normalize by total restaurant reviews. You would probably also want to pull in restaurant category information.
Happy food hunting!
|Email to HTML Script||drydenlong||Python||python||
A script to parse emails and return HTML suited for email blast programs
This class is used to automatically update a LiveJournal blog’s RSS feed, detect new entries and post a comment if the entry is new enough (i.e. is posted in a given period of time from now, for example not older than 1 hour)
|Scrape list of all NBA players||asimmittal||Python||python||
This is a python script that allows you to scrape historical player names and links from NBA.com historical data
|Synesthor Thinks (get a color from colorrrs.com)||nerdfiles||Python||python||
alias synesthor_thinks="py /Users/nerdfiles/Tools/colorrrs/colorrrs.py | pbcopy"
|Clean files/directory by time.||djmornyc||Python||python||
*Does not check permissions. python cleanFiles.py --directory=/home/win98/tmp/ --ageInDays=2
|Python main with options||ssoton||Python||python||
Snippet to show how works optparse module to add optoins when it is called by command line
|Filter Signals using scipy||leonpalafox||Python||python||
This portion of code allows to do bandpass filtering over time series
snippet to show appindicator problem
|Python simple thread manager||ytech||Python||python||
A python static class that handles simple thread management.
|Python - Basic Main Structure||denakitan||Python||python||
Extremely simple snippet showing the basic structure of a Python program.
|Simple IRC bot with SSL||zhyar||Python||python||
This is a simple IRC bot connecting with SSL.
|Example of web parser||zhyar||Python||python||
Simple web parser using urllib and re libs.
|Simple ID3 tagger||zhyar||Python||python||
Require the ID3 lib. Place the script in the directory containing the mp3 files.
|Random alphanumeric string generator||zhyar||Python||python||
Returns 5 random alphanumeric strings of arbitrary size.