Socialmetrica/Socialmetrica.package/TweetsCollection.class/instance/store.st

11 lines
406 B
Smalltalk
Raw Normal View History

accessing
store
| localFolder parameters host profile |
parameters := self queryParameters .
host := parameters asUrl host.
profile := parameters asUrl segments first.
host = NitterUser nitterProvider asUrl host
ifFalse: [ ^ self ].
localFolder := (self dataStore / 'web' / 'twitter.com' / profile) ensureCreateDirectory.
self tweets do: [:each | each exportInto: localFolder ].
^ localFolder