tweet-capture


Nametweet-capture JSON
Version 0.2.5 PyPI version JSON
download
home_pagehttps://github.com/Xacnio/tweetcapture
SummaryTake a tweet screenshot
upload_time2024-04-15 01:09:26
maintainerNone
docs_urlNone
authorAlperen Çetin
requires_python>=3.6
licenseMIT
keywords tweet screenshot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TweetCapture

Easily take screenshots of tweets/mentions and save them as image.

## Command-Line Usage

```
> pip install tweet-capture
> tweetcapture https://twitter.com/jack/status/20
> tweetcapture -h
```

## Code Usage Examples

- [Cli](tweetcapture/cli.py)
- [Code Examples](tweetcapture/examples/)

## Testing
```
> pip3 install opencv-python numpy
> cd tweetcapture/tests/
> python -m unittest
```

## Docker Usage
```
docker run --rm -v $(pwd):/app xacnio/tweetcapture -h
docker run --rm -v $(pwd):/app xacnio/tweetcapture https://twitter.com/jack/status/20
```
- *<font size="1">On Windows: Replace `$(pwd)` with `${PWD}`* (**Powershell**)
- *On Windows: Replace `$(pwd)` with `%cd%`* (**Command Line**)</font>

## Modes

| #   |                                                   |                                                      |
| --- | ------------------------------------------------- | ---------------------------------------------------- |
| 0   | Hide everything outside tweet content and author. | <img src="tweetcapture/assets/mode0.png" width="300"> |
| 1   | Show retweet/like counts.                         | <img src="tweetcapture/assets/mode1.png" width="300"> |
| 2   | Show retweet/like counts and timestamp.           | <img src="tweetcapture/assets/mode2.png" width="300"> |
| 3   | Show everything.                                  | <img src="tweetcapture/assets/mode3.png" width="300"> |
| 4   | Show timestamp.                                   | <img src="tweetcapture/assets/mode4.png" width="300"> |

## Night Modes

| #   |            |                                                      |
| --- | ---------- | ---------------------------------------------------- |
| 0   | Light mode | <img src="tweetcapture/assets/mode4.png" width="300"> |
| 1   | Dark mode  | <img src="tweetcapture/assets/mode1.png" width="300"> |
| 2   | Black mode | <img src="tweetcapture/assets/mode3.png" width="300"> |

## Show Mentions Example
_If the tweet have a very many mentions, there may be problems because "show more" option not supported. The tool can show only first loaded mentions. You can limit mention count on screenshot by using -sc <count> argument_
```
tweetcapture -sm 3 https://twitter.com/Twitter/status/1445078208190291973
```
<details>
    <summary>Image</summary>
    <img src="https://i.imgur.com/IZ0GHl8.png" />
</details>

## Show Parent Tweets Example
```
tweetcapture -sp https://twitter.com/elonmusk/status/1587911540770222081
```
<details>
    <summary>Image</summary>
    <img src="https://i.imgur.com/KrK9N8Y.png" />
</details>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Xacnio/tweetcapture",
    "name": "tweet-capture",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "tweet screenshot",
    "author": "Alperen \u00c7etin",
    "author_email": "xacnio@pm.me",
    "download_url": "https://files.pythonhosted.org/packages/2c/68/02a9f9d0d66e9352f7137ab31da000a97560092d5e1e77b29733a6405039/tweet-capture-0.2.5.tar.gz",
    "platform": null,
    "description": "# TweetCapture\r\n\r\nEasily take screenshots of tweets/mentions and save them as image.\r\n\r\n## Command-Line Usage\r\n\r\n```\r\n> pip install tweet-capture\r\n> tweetcapture https://twitter.com/jack/status/20\r\n> tweetcapture -h\r\n```\r\n\r\n## Code Usage Examples\r\n\r\n- [Cli](tweetcapture/cli.py)\r\n- [Code Examples](tweetcapture/examples/)\r\n\r\n## Testing\r\n```\r\n> pip3 install opencv-python numpy\r\n> cd tweetcapture/tests/\r\n> python -m unittest\r\n```\r\n\r\n## Docker Usage\r\n```\r\ndocker run --rm -v $(pwd):/app xacnio/tweetcapture -h\r\ndocker run --rm -v $(pwd):/app xacnio/tweetcapture https://twitter.com/jack/status/20\r\n```\r\n- *<font size=\"1\">On Windows: Replace `$(pwd)` with `${PWD}`* (**Powershell**)\r\n- *On Windows: Replace `$(pwd)` with `%cd%`* (**Command Line**)</font>\r\n\r\n## Modes\r\n\r\n| #   |                                                   |                                                      |\r\n| --- | ------------------------------------------------- | ---------------------------------------------------- |\r\n| 0   | Hide everything outside tweet content and author. | <img src=\"tweetcapture/assets/mode0.png\" width=\"300\"> |\r\n| 1   | Show retweet/like counts.                         | <img src=\"tweetcapture/assets/mode1.png\" width=\"300\"> |\r\n| 2   | Show retweet/like counts and timestamp.           | <img src=\"tweetcapture/assets/mode2.png\" width=\"300\"> |\r\n| 3   | Show everything.                                  | <img src=\"tweetcapture/assets/mode3.png\" width=\"300\"> |\r\n| 4   | Show timestamp.                                   | <img src=\"tweetcapture/assets/mode4.png\" width=\"300\"> |\r\n\r\n## Night Modes\r\n\r\n| #   |            |                                                      |\r\n| --- | ---------- | ---------------------------------------------------- |\r\n| 0   | Light mode | <img src=\"tweetcapture/assets/mode4.png\" width=\"300\"> |\r\n| 1   | Dark mode  | <img src=\"tweetcapture/assets/mode1.png\" width=\"300\"> |\r\n| 2   | Black mode | <img src=\"tweetcapture/assets/mode3.png\" width=\"300\"> |\r\n\r\n## Show Mentions Example\r\n_If the tweet have a very many mentions, there may be problems because \"show more\" option not supported. The tool can show only first loaded mentions. You can limit mention count on screenshot by using -sc <count> argument_\r\n```\r\ntweetcapture -sm 3 https://twitter.com/Twitter/status/1445078208190291973\r\n```\r\n<details>\r\n    <summary>Image</summary>\r\n    <img src=\"https://i.imgur.com/IZ0GHl8.png\" />\r\n</details>\r\n\r\n## Show Parent Tweets Example\r\n```\r\ntweetcapture -sp https://twitter.com/elonmusk/status/1587911540770222081\r\n```\r\n<details>\r\n    <summary>Image</summary>\r\n    <img src=\"https://i.imgur.com/KrK9N8Y.png\" />\r\n</details>\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Take a tweet screenshot",
    "version": "0.2.5",
    "project_urls": {
        "Homepage": "https://github.com/Xacnio/tweetcapture"
    },
    "split_keywords": [
        "tweet",
        "screenshot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c6802a9f9d0d66e9352f7137ab31da000a97560092d5e1e77b29733a6405039",
                "md5": "10b4a421e853f020a93c007d0d2ce2fc",
                "sha256": "5c7abcefa4e13489838eecd588cd4d6c4ccb467e85b2fcbaad66ff6a6819d05e"
            },
            "downloads": -1,
            "filename": "tweet-capture-0.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "10b4a421e853f020a93c007d0d2ce2fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 10086,
            "upload_time": "2024-04-15T01:09:26",
            "upload_time_iso_8601": "2024-04-15T01:09:26.551819Z",
            "url": "https://files.pythonhosted.org/packages/2c/68/02a9f9d0d66e9352f7137ab31da000a97560092d5e1e77b29733a6405039/tweet-capture-0.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-15 01:09:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Xacnio",
    "github_project": "tweetcapture",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "tweet-capture"
}
        
Elapsed time: 0.23311s