Skip to main content

Archive 4Chan threads to Discord

Project description

Archive2Discord

Archive your favourite 4Chan thread 2 Discord


Ever had that moment where you wanted to look up a specific thread that had been archived but couldn't find it? Or you wanted to view the attachments in an archived thread, but it got deleted? Well, say no more!


Demo

a2d_demo.mp4

Install

Install using pip:

pip install -U a2d

Usage

This guide assumes that you know what Discord is and how to use it.

Required URLs

First, you'll need the URL of the thread you want to archive (e.g: https://boards.4chan.org/wg/thread/7977599). After that, create a Discord webhook and copy the URL.

CLI arguments

Usage: a2d [OPTIONS] THREAD WEBHOOK

The first agument should be the thread URL and the second argument should be the webhook URL.

If you want to archive the entire thread:

a2d https://boards.4chan.org/wg/thread/7977599 https://discord.com/api/webhooks/1093195001258836058/xxxxx

CLI options

There's some options to customize on what you want to archive. Here are the ones that are implemented:

--skip-comments

Using this flag skips all comments and only archives attachments.

Note Does not skip comments WITH attachments.

a2d thread_url webhook_url --skip-comments

skip-files

Using this flag skips all comments with attachment and only archives comments.

a2d thread_url webhook_url --skip-files

--delay INTEGER

Use this to set a delay when archiving to Discord

a2d thread_url webhook_url --delay 5

Contributing

I have only tested this script with a handful of threads. Feel free to open an issue or PR to report/fix any bugs.

If you have any ideas or improvements, feel free to suggest it too by opening an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a2d-0.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

a2d-0.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file a2d-0.0.1.tar.gz.

File metadata

  • Download URL: a2d-0.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for a2d-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bf5655e7118bdba5c7ef11f7c61d0e9d1f37b650717f287041744be388549d6a
MD5 78dd21e761ddb03220c123cbd7a0e4b0
BLAKE2b-256 ee4a45520e4a09714d22e68c25a23150b28052fa11982790bd483a0a8b4bb84e

See more details on using hashes here.

File details

Details for the file a2d-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: a2d-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for a2d-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ad6bb6a1ab7a70f2df1871bab8df700ef39775110105d5c73bbeb5320b39234
MD5 a98ae10034dc82e55c62465d0044c6a4
BLAKE2b-256 ada11212a0ccd6bee8662734c2844a550fa7a2c339a607b8c22e3e987f55a113

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page