fix picture fetching
[rofl0r-twatscrape.git] / paths.py
blob2c5d2c140aa4cc5eae81f475d687effbf91565e3
1 import os
3 ## default user path
4 def get_user(user):
5 user = user.lower()
6 return 'users/%s' % user
8 ## json path
9 def get_user_json(user):
10 return get_user(user) + '/twats.json'
12 ## profile path
13 def get_profile_pic(user):
14 return get_user(user) + '/profile.jpg'
16 ## check if profile pic exists
17 def has_profile_pic(user):
18 return os.path.isfile(get_profile_pic(user))