Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Site Support Request] cohost.org #4483

Closed
JAK0723 opened this issue Aug 31, 2023 · 10 comments
Closed

[Site Support Request] cohost.org #4483

JAK0723 opened this issue Aug 31, 2023 · 10 comments

Comments

@JAK0723
Copy link

JAK0723 commented Aug 31, 2023

Example: https://cohost.org/SwampistArts
Example: https://cohost.org/NanoButts

Has image posts, text posts, reposts, replies to questions, and 18+ filter.

@randumblai
Copy link

i'd like to bump this and add my request for this as well, as more artists have joined cohost.org since this site support request was initially submitted, and it'd mean a lot to be able to easily download and keep my own offline archive of what they post.

of note also; cookie support most likely would be necessary, as some cohost user pages, (i believe the ones marked as adult/NSFW), do not let you view them without logging in.

@manwithakeyboard
Copy link

Was going to open a new issue for this but remembered not to be an idiot and search for duplicate requests first.
3rding the request as some furry artists are posting some stuff here exclusively and saving it all hurts my poor fingers.
Login support will probably become mandatory as it gets more popular but for now the default seems to be a click through confirmation for each NSFW post similar to baraag.
Screenshot 2024-01-08 at 06-10-55 Jazz on cohost

@DuendeInexistente
Copy link

@manwithakeyboard If you're using a browser addon to use gallery-dl automatically, you can always just use it on images directly. It'll just save them to a directlink folder instead of properly sorting it.

@Scripter17
Copy link
Contributor

Cohost is going to be shutting down by the end of the year so there's a time limit on this.

https://cohost.org/staff/post/7611443-cohost-to-shut-down

@mikf
Copy link
Owner

mikf commented Sep 11, 2024

I've added basic Cohost support for user and post URLs (df0d7d4).

Login is not directly implemented, but providing cookies should work.
Let me know what else should be added, what doesn't work as expected, etc.

Downloading 18+ content seems to work without login, but there is some weird infinite empty page loop going on for some profiles like https://cohost.org/NanoButts from OP, which might resolve itself when logged in. This gets currently handled by exiting after 3 consecutive empty result.
(I don't have an account and registering new ones is disabled ...)

@Scripter17
Copy link
Contributor

The current extractor doesn't seem to do text-only posts (re: twitter's text-tweets option)

@mikf
Copy link
Owner

mikf commented Sep 12, 2024

They are enabled by default, but, just like twitter, need an "event": "post" metadata post processor to be written to disk. The text content can be found in content or plainTextBody.

            {
                "name": "metadata",
                "event": "post",
                "filename": "{postId}.txt",
                "filter": "content",
                "format": "{content:J\n\n}"
            }

@Novaenia
Copy link
Contributor

Novaenia commented Sep 12, 2024

requesting support to download your own liked posts if cookies are provided (https://cohost.org/rc/liked-posts)

edit: tags would be appreciated too! (https://cohost.org/rc/tagged/exampletag)

@mikf
Copy link
Owner

mikf commented Sep 16, 2024

requesting support to download your own liked posts

I don't have an account and creating a new one is not possible anymore, so I can't access /liked-posts and figure out how it works.

I would need the full HTML content of, lets say, the second /liked-posts page from someone to maybe be able to add support for liked posts.

edit: tags would be appreciated too!

7abf6e4

@Novaenia
Copy link
Contributor

I would need the full HTML content of, lets say, the second /liked-posts page from someone to maybe be able to add support for liked posts.

turns out that downloading likes is nearly the same as downloading tags! PR: #6191

@mikf mikf closed this as completed Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants
@mikf @DuendeInexistente @Scripter17 @JAK0723 @randumblai @Novaenia @manwithakeyboard and others