twitterer


Nametwitterer JSON
Version 0.3.1 PyPI version JSON
download
home_pageNone
SummaryPython's package to scrape Twitter with selenium.
upload_time2024-08-24 06:54:58
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT License Copyright (c) 2024 CatBraaain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords twitter selenium scrape scraping scraper twitterer bot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # twitterer

Python's package to scrape Twitter with selenium.
Get, like, retweet tweets with automatically.

## Usage
1. Install python package
```cmd
pip install twitterer
```
2. Create `.env` file at project root.
```properties
TWITTER_USERNAME = ReplaceThisToYourOwns
TWITTER_PASSWORD = ReplaceThisToYourOwns
```

### Get tweets and save it
```python
from twitterer import Twitterer

twitterer = Twitterer()
twitterer.authenticate()
tweets = list(
    twitterer.get_tweets(
        url="https://x.com/search?q=funny%20filter:videos",
        max_tweets=20,
    )
)

twitterer.save_to_file(tweets)
```

### Like and retweet tweets
`.get_tweets()` method returns generator.
This is real-time processing, so when you use `.like()` or `.retweet()` method on tweets, i must be handled by a generator.
```python
from twitterer import Twitterer

twitterer = Twitterer(headless=False)
twitterer.authenticate()
for tweet in twitterer.get_tweets(
    url="https://x.com/home",
    max_tweets=20,
):
    tweet.like()
    tweet.retweet()
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "twitterer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "twitter, selenium, scrape, scraping, scraper, twitterer, bot",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/3e/37/c82008c70a2a6c46c38f9dd49435e55be4580d287cfd9c896473200cb1a5/twitterer-0.3.1.tar.gz",
    "platform": null,
    "description": "\ufeff# twitterer\r\n\r\nPython's package to scrape Twitter with selenium.\r\nGet, like, retweet tweets with automatically.\r\n\r\n## Usage\r\n1. Install python package\r\n```cmd\r\npip install twitterer\r\n```\r\n2. Create `.env` file at project root.\r\n```properties\r\nTWITTER_USERNAME = ReplaceThisToYourOwns\r\nTWITTER_PASSWORD = ReplaceThisToYourOwns\r\n```\r\n\r\n### Get tweets and save it\r\n```python\r\nfrom twitterer import Twitterer\r\n\r\ntwitterer = Twitterer()\r\ntwitterer.authenticate()\r\ntweets = list(\r\n    twitterer.get_tweets(\r\n        url=\"https://x.com/search?q=funny%20filter:videos\",\r\n        max_tweets=20,\r\n    )\r\n)\r\n\r\ntwitterer.save_to_file(tweets)\r\n```\r\n\r\n### Like and retweet tweets\r\n`.get_tweets()` method returns generator.\r\nThis is real-time processing, so when you use `.like()` or `.retweet()` method on tweets, i must be handled by a generator.\r\n```python\r\nfrom twitterer import Twitterer\r\n\r\ntwitterer = Twitterer(headless=False)\r\ntwitterer.authenticate()\r\nfor tweet in twitterer.get_tweets(\r\n    url=\"https://x.com/home\",\r\n    max_tweets=20,\r\n):\r\n    tweet.like()\r\n    tweet.retweet()\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 CatBraaain  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Python's package to scrape Twitter with selenium.",
    "version": "0.3.1",
    "project_urls": {
        "Homepage": "https://github.com/CatBraaain/twitterer"
    },
    "split_keywords": [
        "twitter",
        " selenium",
        " scrape",
        " scraping",
        " scraper",
        " twitterer",
        " bot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "83cd755fd41ac4250174ad5fa3f9c30f92948ce0a25005291a7c31879741f3f4",
                "md5": "47aeb9c137a1b8885635050e408780cd",
                "sha256": "5d65272feb0bf086dc3170193aa493efd0e56ab4a0b6cd6d454b9b4ec294544d"
            },
            "downloads": -1,
            "filename": "twitterer-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "47aeb9c137a1b8885635050e408780cd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11327,
            "upload_time": "2024-08-24T06:54:57",
            "upload_time_iso_8601": "2024-08-24T06:54:57.407257Z",
            "url": "https://files.pythonhosted.org/packages/83/cd/755fd41ac4250174ad5fa3f9c30f92948ce0a25005291a7c31879741f3f4/twitterer-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e37c82008c70a2a6c46c38f9dd49435e55be4580d287cfd9c896473200cb1a5",
                "md5": "5914464526888ce264aeba73425198b0",
                "sha256": "90fc863ace8fd143359be3c08794d449692a642f085526daa4a9c7dacf6df1f1"
            },
            "downloads": -1,
            "filename": "twitterer-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5914464526888ce264aeba73425198b0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9848,
            "upload_time": "2024-08-24T06:54:58",
            "upload_time_iso_8601": "2024-08-24T06:54:58.905006Z",
            "url": "https://files.pythonhosted.org/packages/3e/37/c82008c70a2a6c46c38f9dd49435e55be4580d287cfd9c896473200cb1a5/twitterer-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-24 06:54:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CatBraaain",
    "github_project": "twitterer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "twitterer"
}
        
Elapsed time: 4.03051s