File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1010RATE = 60 * 30
1111MENTION_RATE = 65
1212
13+ INPUT_FOLDER = ''
14+ OUTPUT_FOLDER = ''
15+
1316FLICKR_API_KEY = None
1417TWITTER_CONSUMER_KEY = None
1518TWITTER_CONSUMER_SECRET = None
@@ -173,8 +176,8 @@ def handle_mention(status):
173176 print 'user mentioned me too recently'
174177 return
175178 USER_DATETIME [user_id ] = now
176- in_path = '%s.jpg' % status .id
177- out_path = '%s.png' % status .id
179+ in_path = os . path . join ( INPUT_FOLDER , '%s.jpg' % status .id )
180+ out_path = os . path . join ( OUTPUT_FOLDER , '%s.png' % status .id )
178181 print 'downloading' , url
179182 download_photo (url , in_path )
180183 config = Config ()
@@ -210,8 +213,8 @@ def generate():
210213 photos = interesting (date )
211214 photo = random .choice (photos )
212215 print 'picked photo' , photo ['id' ]
213- in_path = '%s.jpg' % photo ['id' ]
214- out_path = '%s.png' % photo ['id' ]
216+ in_path = os . path . join ( INPUT_FOLDER , '%s.jpg' % photo ['id' ])
217+ out_path = os . path . join ( OUTPUT_FOLDER , '%s.png' % photo ['id' ])
215218 url = photo_url (photo , 'z' )
216219 print 'downloading' , url
217220 download_photo (url , in_path )
You can’t perform that action at this time.
0 commit comments