Skip to content

Commit

Permalink
hash test
Browse files Browse the repository at this point in the history
  • Loading branch information
adityabindal committed Jul 21, 2017
1 parent f6cb698 commit 3d85608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -58,7 +58,7 @@ def __init__(self, obj):
self.postingDate=obj['PostedDate']
self.timeStamp=time.strftime('%Y-%m-%d %H:%M:%S')
self.neighborhood=get_neighborhood_for_point(self.latitude,self.longitude,poly)
self.hashedTitle=hashlib.md5(str(self.title)+str(self.price)+str(self.neighborhood)).hexdigest()
self.hashedTitle=hashlib.md5((str(self.title)+str(self.price)+str(self.neighborhood)).encode('utf-8')).hexdigest()
self.daysSince=(datetime.datetime.now()-datetime.datetime.fromtimestamp(self.postingDate)).days
def saveToDB(self):
scraperwiki.sqlite.save(
Expand Down

0 comments on commit 3d85608

Please sign in to comment.