Giter Club home page Giter Club logo

Comments (13)

rusq avatar rusq commented on June 8, 2024 3

Hey @tessus, unfortunately currently there's no way currently to dump a specific thread without dumping the whole conversation/channel. Threads support was added recently and there's certainly may ways of improvement. That's a good suggestion, thank you, i'll look into that.

from slackdump.

tessus avatar tessus commented on June 8, 2024 1

I am sorry. I had so many meetings the last 2 weeks that my head was exploding half way through the day. I totally forgot to test and send you feedback. Next week should be a bit better and I will hopefully get to it.

But rest assured I will test this and use it. I really need this feature. ;-)

from slackdump.

rusq avatar rusq commented on June 8, 2024 1

No problem, hope it works for you!

from slackdump.

tshddx avatar tshddx commented on June 8, 2024

slackdump -c works for me. It outputs a table like this:

2022/01/20 10:12:32 initializing...
2022/01/20 10:12:32 > caching users...
2022/01/20 10:12:32 > caching channels, might take a while...
2022/01/20 10:12:32 retrieving data...
2022/01/20 10:12:32 done
ID           Arch  Saved  What
C0ABCDE1    arch  saved  #random
C0ABCDE2    -     saved  #general
C0ABCDE3    -     saved  #movies
C0ABCDE4    -     saved  #books

from slackdump.

tessus avatar tessus commented on June 8, 2024

Hmm, I thought I was clear in my desciption. Take a random channel and start a thread in that channel. Now I want to export this single thread. (The message and all replies to that message (reply in thread)). I do not need the 500,000 other messages in that channel. I only need this single thread.

from slackdump.

tshddx avatar tshddx commented on June 8, 2024

Oh sorry, you're talking about actual "threads" in Slack. I.e. conversation replies. This command line tool doesn't expose that functionality directly, but it probably wouldn't be too hard to directly expose the dumpThread function. The underlying Slack API method this uses is here: https://api.slack.com/methods/conversations.replies

from slackdump.

tessus avatar tessus commented on June 8, 2024

Cool, thanks. I will have a look at it when I have a bit more time. If there is an API call available, it shouldn't be too hard to add this to the script (oops, I meant Go app).

from slackdump.

rusq avatar rusq commented on June 8, 2024

There's a draft implementation in a url-dl branch, if you want to try it out. I'm just finishing some tests and planning to do some docs as well, when the constellations are properly aligned.

You can check it out with

git pull && git checkout url-dl

compile:

go build ./cmd/slackdump

Or, alternatively use these binaries:
slackdump-linux.zip
slackdump-windows.zip
slackdump-darwin.zip

And then, you'd need to specify the -url command line flag like so:

./slackdump -f -r text -url <URL1> [URL2] ... [URLn]

Alternatively, you could chuck all the URLs you want to fetch to the text file, and run it like so

./slackdump -i all_those_lengthy_urls.txt -f -r text

The URLs can be either of channels or a thread.

Would be great to have some feedback on this before I merge :) If not - that's also fine, i'll just merge as is, after I finish tests.

from slackdump.

tessus avatar tessus commented on June 8, 2024

Awesome, I will test it in a couple of days.

from slackdump.

rusq avatar rusq commented on June 8, 2024

@tessus merged, please use v1.3.0, the readme was updated too!

from slackdump.

tessus avatar tessus commented on June 8, 2024

Yes, it works! Nice.

I have noticed one small issue though. It might not have anything to do with this change though: certain characters are html encoded.

Architecture: `Project` -> `project specific OTel Collector (Gateway)` -> `centralized OTel Collector Gateway` -> `Backend`

turns to

Architecture: `Project` -&gt; `project specific OTel Collector (Gateway)` -&gt; `centralized OTel Collector Gateway` -&gt; `Backend`

from slackdump.

rusq avatar rusq commented on June 8, 2024

@tessus thank you! Good catch with escaped characters - fixed it, will be available in 1.3.1, almost done with it, will update the releases in couple of days, just need to do some final testing.

from slackdump.

tessus avatar tessus commented on June 8, 2024

Great, thank you!

from slackdump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.