Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

src/c/o/consume-rBeer-HEAD/src/Beer.py   consume-rBeer(Download)
import datetime
 
from Review import Review
 
class Beer(object):
            if page != 1:
                raw_page = self.fetch_beer_page(page=page)
            self.reviews +=[Review(beer_uid=self.uid, user_uid=int(user_id),
                                    brewery_uid =self.brewery_id, topline_score=float(topline_score),
                                    aroma_score=int(aroma), apperance_score=int(apperance),

src/a/l/allocine-wrapper-0.3.0/allocine/Allocine.py   allocine-wrapper(Download)
import urllib, urllib2, json
from settings import *
from Movie import Movie
from Person import Person
from Review import Review
  def reviewList(self, movie_code):
    d = json.loads(urllib.urlopen("http://api.allocine.fr/rest/v3/reviewlist?partner=%s&format=json&code=%s" % (PARTNER_CODE, movie_code)).read())
    return [Review(**i) for i in d["feed"]["review"]]
 
if __name__ == "__main__":