From 9a2283a653b523fd2758a4ce8b0395125f342d38 Mon Sep 17 00:00:00 2001 From: ruidajo Date: Mon, 28 Mar 2022 16:45:54 -0500 Subject: [PATCH] Creating exporter for nitter profile image. --- .../instance/exportProfileImageOn..st | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Datanalitica.package/NitterUser.class/instance/exportProfileImageOn..st diff --git a/Datanalitica.package/NitterUser.class/instance/exportProfileImageOn..st b/Datanalitica.package/NitterUser.class/instance/exportProfileImageOn..st new file mode 100644 index 0000000..fcd8fd9 --- /dev/null +++ b/Datanalitica.package/NitterUser.class/instance/exportProfileImageOn..st @@ -0,0 +1,11 @@ +accessing +exportProfileImageOn: fileReference + + | file | + file := fileReference asFileReference. + file ensureDelete. + file exists ifFalse: [ file ensureCreateFile ]. + file binaryWriteStreamDo: [ :stream | + stream nextPutAll: profileImageUrl retrieveContents ]. + super class inform: 'Exported as: ', String cr, file fullName. + ^ file \ No newline at end of file