a2d


Namea2d JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/scrazzz/a2d
SummaryArchive 4Chan threads to Discord
upload_time2023-04-08 04:36:47
maintainer
docs_urlNone
authorscrazzz
requires_python>=3.8.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center"> <code>Archive2Discord</code> </h1>
<h4 align="center"> Archive your favourite 4Chan thread 2 Discord </h4>

-----

<p align="center">
    <i>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!</i>
<p>

-----

<h2 align="center"> Demo </h2>

[a2d_demo.mp4](https://user-images.githubusercontent.com/70033559/230702359-7722cf06-8ab0-457b-8ae0-44c017f5deb4.mp4)

## Install
Install using pip:
```console
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](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) and copy the URL.

### CLI arguments
```console
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:
```console
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.
```console
a2d thread_url webhook_url --skip-comments
```

#### `skip-files`
Using this flag skips all comments with attachment and only archives comments.
```console
a2d thread_url webhook_url --skip-files
```

#### `--delay INTEGER`
Use this to set a delay when archiving to Discord
```console
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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/scrazzz/a2d",
    "name": "a2d",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "scrazzz",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/ee/4a/45520e4a09714d22e68c25a23150b28052fa11982790bd483a0a8b4bb84e/a2d-0.0.1.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\"> <code>Archive2Discord</code> </h1>\r\n<h4 align=\"center\"> Archive your favourite 4Chan thread 2 Discord </h4>\r\n\r\n-----\r\n\r\n<p align=\"center\">\r\n    <i>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!</i>\r\n<p>\r\n\r\n-----\r\n\r\n<h2 align=\"center\"> Demo </h2>\r\n\r\n[a2d_demo.mp4](https://user-images.githubusercontent.com/70033559/230702359-7722cf06-8ab0-457b-8ae0-44c017f5deb4.mp4)\r\n\r\n## Install\r\nInstall using pip:\r\n```console\r\npip install -U a2d\r\n```\r\n\r\n## Usage\r\nThis guide assumes that you know what Discord is and how to use it.\r\n\r\n### Required URLs\r\nFirst, 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](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) and copy the URL.\r\n\r\n### CLI arguments\r\n```console\r\nUsage: a2d [OPTIONS] THREAD WEBHOOK\r\n```\r\nThe first agument should be the thread URL and the second argument should be the webhook URL.\r\n\r\nIf you want to archive the entire thread:\r\n```console\r\na2d https://boards.4chan.org/wg/thread/7977599 https://discord.com/api/webhooks/1093195001258836058/xxxxx\r\n```\r\n\r\n### CLI options\r\nThere's some options to customize on what you want to archive. Here are the ones that are implemented:\r\n\r\n#### `--skip-comments`\r\nUsing this flag skips all comments and only archives attachments.\r\n> **Note**\r\n> Does not skip comments WITH attachments.\r\n```console\r\na2d thread_url webhook_url --skip-comments\r\n```\r\n\r\n#### `skip-files`\r\nUsing this flag skips all comments with attachment and only archives comments.\r\n```console\r\na2d thread_url webhook_url --skip-files\r\n```\r\n\r\n#### `--delay INTEGER`\r\nUse this to set a delay when archiving to Discord\r\n```console\r\na2d thread_url webhook_url --delay 5\r\n```\r\n\r\n## Contributing\r\nI have only tested this script with a handful of threads. Feel free to open an issue or PR to report/fix any bugs.\r\n\r\nIf you have any ideas or improvements, feel free to suggest it too by opening an issue.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Archive 4Chan threads to Discord",
    "version": "0.0.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ada11212a0ccd6bee8662734c2844a550fa7a2c339a607b8c22e3e987f55a113",
                "md5": "a98ae10034dc82e55c62465d0044c6a4",
                "sha256": "1ad6bb6a1ab7a70f2df1871bab8df700ef39775110105d5c73bbeb5320b39234"
            },
            "downloads": -1,
            "filename": "a2d-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a98ae10034dc82e55c62465d0044c6a4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.0",
            "size": 7292,
            "upload_time": "2023-04-08T04:36:45",
            "upload_time_iso_8601": "2023-04-08T04:36:45.640746Z",
            "url": "https://files.pythonhosted.org/packages/ad/a1/1212a0ccd6bee8662734c2844a550fa7a2c339a607b8c22e3e987f55a113/a2d-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ee4a45520e4a09714d22e68c25a23150b28052fa11982790bd483a0a8b4bb84e",
                "md5": "78dd21e761ddb03220c123cbd7a0e4b0",
                "sha256": "bf5655e7118bdba5c7ef11f7c61d0e9d1f37b650717f287041744be388549d6a"
            },
            "downloads": -1,
            "filename": "a2d-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "78dd21e761ddb03220c123cbd7a0e4b0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.0",
            "size": 5646,
            "upload_time": "2023-04-08T04:36:47",
            "upload_time_iso_8601": "2023-04-08T04:36:47.910748Z",
            "url": "https://files.pythonhosted.org/packages/ee/4a/45520e4a09714d22e68c25a23150b28052fa11982790bd483a0a8b4bb84e/a2d-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-08 04:36:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "scrazzz",
    "github_project": "a2d",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "a2d"
}
        
Elapsed time: 0.16258s