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-request] 420chan.org #1773

Closed
synthicz opened this issue Aug 14, 2021 · 1 comment
Closed

[site-request] 420chan.org #1773

synthicz opened this issue Aug 14, 2021 · 1 comment

Comments

@synthicz
Copy link

Hey,
it would be great if 420chan.org (same style as other 4chan boards) could be added.

Website: https://boards.420chan.org/
Example board (nsfw): https://boards.420chan.org/h/
Example thread (nsfw): https://boards.420chan.org/h/thread/631919/kittew-is-back
Example image (nsfw): https://boards.420chan.org/h/src/1580390021172.jpg

@Scripter17
Copy link
Contributor

Did a quick check out of curiosity

There's an API at https://api.420chan.org/{board}/res/{threadnum}.json

The format seems to be as follows (unquoted variables are numbers):

{
    "posts": [
        {
            "no": threadNum,
            "now": "%a, %d %b %Y %H:%M:%S EST",
            "name": "OP's Name",
            "id": "threadID",
            "sub": "Some sort of subboard?",
            "com": "Post content",
            "filename": "filename without extension",
            "ext": ".extension",
            "w": imageWidth,
            "h": imageHeight,
            "tn_w": imageThumbnailWidth,
            "tn_h": imageThumbnailHeight,
            "time": UNIXTimestamp,
            "fsize": filesize,
            "replies": lengthOfArray-1
        },
        ...
    ]
}

@mikf mikf closed this as completed in 20ee091 Aug 21, 2021
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

3 participants