Storing several tweets.
This commit is contained in:
parent
a899ba9a9d
commit
062a0ac309
@ -0,0 +1,5 @@
|
|||||||
|
accessing
|
||||||
|
storeDB
|
||||||
|
| localDBFile |
|
||||||
|
localDBFile := FileLocator userData / 'Socialmetrica' / 'socialmetrica.sqlite'.
|
||||||
|
^ ReStore connection: (SSWSQLite3Connection on: localDBFile fullName).
|
@ -1,11 +1,4 @@
|
|||||||
accessing
|
accessing
|
||||||
store
|
store
|
||||||
| localFolder parameters host profile |
|
self class storeDB. "Starting the ReStore singleton."
|
||||||
parameters := self queryParameters .
|
self tweets do: [:each | ReStore evaluateAsTransaction: [ each store ] ].
|
||||||
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
|
|
Loading…
Reference in New Issue
Block a user