pyzapkit


Namepyzapkit JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/joaosuzuki98/pyzapkit
SummaryAutomatically send Whatsapp messages and files
upload_time2023-09-10 15:44:46
maintainer
docs_urlNone
authorJoão Suzuki
requires_python
licenseMIT
keywords automation whatsapp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1>What is Pyzapkit?</h1>

<p>Do you waste countless hours sending messages though Whatsapp? Do you need to send the same file over and over again to different contacts? Say no more. Pyzapkit lets you automate all of your Whatsapp messages!</p>

<p>Using <b>selenium</b> and <b>pyautogui</b>, Pyzapkit lets you send text messages or files, instantly or at a certain time of the day</p>

<h1>How to use it</h1>

<p>
First, install pyzapkit:
</p>

```python
pip install pyzapkit
```
<br>

<p>
Import the Pyzap class:
</p>

```python
from pyzapkit.main import Pyzap
```
<br>

<p>
Now, you need to check which Google Chrome profile has your whatsapp web account, to do this, go to:
</p>

<h3>
On linux
</h3>

```
/home/your_user/.config/google-chrome
```

<h3>
On windows
</h3>

```
C:\Users\your_user\AppData\Local\Google\Chrome\User Data
```

<p>Inside those folders will be your chrome profiles. Usually, they will be named as 'Profile 1', 'Profile 2', 'Profile 3' and so on, but they can also be named as 'Default' or your chrome user name. Choose the one that has your whatsapp web account login.</p>
<br>

<p>
Instantiate Pyzap with your Chrome profile as an argument:
</p>

```python
whatsapp = Pyzap('Profile 2')
```
<br>

<p>
From there, you can:
</p>

<h4>Send text messages</h4>

```python
whatsapp.send_message('123456789', 'a message')
```

<p>To send text messages at a given time</p>

```python
whatsapp.send_message('123456789', 'a message', False, '14', '15')
```

* Use 24-hour format
* You can use an int or a str as the phone number
* It is not needed to start the phone number with the plus (+) sign

<p>A Chrome browser will be opened and the message will be sent.</p>
<br>

<h4>Send images or videos</h4>

```python
whatsapp.send_file('123456789', 'path/to/your/file.png')
```

* You can send both images (jpg, jpeg or png) or videos (mp4).

<p>You can also send a file at a certain time.</p>

```python
whatsapp.send_file('123456789', 'path/to/your/file.png', instantly=False, hour='14', min='15')
```

<p>You can also specify how long the browser will wait for the file to upload</p>

```python
whatsapp.send_file('123456789', 'path/to/your/file.png', '5', False, '14', '15')
```

<p>When using this method, a browser will be opened, then a dialog box will be opened, when this happens, don't move your mouse nor use your keyboard, because they will be used to automate the file sending process.</p>
<br>

<h4>Send document files</h4>

```python
whatsapp.send_doc('123456789', 'path/to/your/doc.pdf')
```

<p>As always, you can schedule it</p>

```python
whatsapp.send_doc('123456789', 'path/to/your/doc.pdf', instantly=False, hour='14', min='15')
```

<p>Just like with files, you can choose a upload waiting time</p>

```python
whatsapp.send_doc('123456789', 'path/to/your/doc.pdf', '5', False, '14', '15')
```
<br>

<h1>Requirements</h1>

* Google Chrome version 115
* On linux, use xorg display server
* before running the script, download the following pyautogui dependencies:

```bash
sudo apt install scrot
sudo apt install python3-tk 
sudo apt install python3-dev 
```
<br>

<h1>Recommendations</h1>

* When using send_file or send_doc methods, make sure that your directories or files do not have any accent, like ã, ê, ñ etc.
* Before using this script, open your browser with your whatsapp web account logged in and let it load your messages. Whatsapp web almost always backup your messages and this time loading the messages can break the script.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/joaosuzuki98/pyzapkit",
    "name": "pyzapkit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Automation,Whatsapp",
    "author": "Jo\u00e3o Suzuki",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/3a/cb/7e871844cce8c58f02603009fb8fb7d45b849c02f74bda89333ebc5625de/pyzapkit-0.1.0.tar.gz",
    "platform": null,
    "description": "<h1>What is Pyzapkit?</h1>\n\n<p>Do you waste countless hours sending messages though Whatsapp? Do you need to send the same file over and over again to different contacts? Say no more. Pyzapkit lets you automate all of your Whatsapp messages!</p>\n\n<p>Using <b>selenium</b> and <b>pyautogui</b>, Pyzapkit lets you send text messages or files, instantly or at a certain time of the day</p>\n\n<h1>How to use it</h1>\n\n<p>\nFirst, install pyzapkit:\n</p>\n\n```python\npip install pyzapkit\n```\n<br>\n\n<p>\nImport the Pyzap class:\n</p>\n\n```python\nfrom pyzapkit.main import Pyzap\n```\n<br>\n\n<p>\nNow, you need to check which Google Chrome profile has your whatsapp web account, to do this, go to:\n</p>\n\n<h3>\nOn linux\n</h3>\n\n```\n/home/your_user/.config/google-chrome\n```\n\n<h3>\nOn windows\n</h3>\n\n```\nC:\\Users\\your_user\\AppData\\Local\\Google\\Chrome\\User Data\n```\n\n<p>Inside those folders will be your chrome profiles. Usually, they will be named as 'Profile 1', 'Profile 2', 'Profile 3' and so on, but they can also be named as 'Default' or your chrome user name. Choose the one that has your whatsapp web account login.</p>\n<br>\n\n<p>\nInstantiate Pyzap with your Chrome profile as an argument:\n</p>\n\n```python\nwhatsapp = Pyzap('Profile 2')\n```\n<br>\n\n<p>\nFrom there, you can:\n</p>\n\n<h4>Send text messages</h4>\n\n```python\nwhatsapp.send_message('123456789', 'a message')\n```\n\n<p>To send text messages at a given time</p>\n\n```python\nwhatsapp.send_message('123456789', 'a message', False, '14', '15')\n```\n\n* Use 24-hour format\n* You can use an int or a str as the phone number\n* It is not needed to start the phone number with the plus (+) sign\n\n<p>A Chrome browser will be opened and the message will be sent.</p>\n<br>\n\n<h4>Send images or videos</h4>\n\n```python\nwhatsapp.send_file('123456789', 'path/to/your/file.png')\n```\n\n* You can send both images (jpg, jpeg or png) or videos (mp4).\n\n<p>You can also send a file at a certain time.</p>\n\n```python\nwhatsapp.send_file('123456789', 'path/to/your/file.png', instantly=False, hour='14', min='15')\n```\n\n<p>You can also specify how long the browser will wait for the file to upload</p>\n\n```python\nwhatsapp.send_file('123456789', 'path/to/your/file.png', '5', False, '14', '15')\n```\n\n<p>When using this method, a browser will be opened, then a dialog box will be opened, when this happens, don't move your mouse nor use your keyboard, because they will be used to automate the file sending process.</p>\n<br>\n\n<h4>Send document files</h4>\n\n```python\nwhatsapp.send_doc('123456789', 'path/to/your/doc.pdf')\n```\n\n<p>As always, you can schedule it</p>\n\n```python\nwhatsapp.send_doc('123456789', 'path/to/your/doc.pdf', instantly=False, hour='14', min='15')\n```\n\n<p>Just like with files, you can choose a upload waiting time</p>\n\n```python\nwhatsapp.send_doc('123456789', 'path/to/your/doc.pdf', '5', False, '14', '15')\n```\n<br>\n\n<h1>Requirements</h1>\n\n* Google Chrome version 115\n* On linux, use xorg display server\n* before running the script, download the following pyautogui dependencies:\n\n```bash\nsudo apt install scrot\nsudo apt install python3-tk \nsudo apt install python3-dev \n```\n<br>\n\n<h1>Recommendations</h1>\n\n* When using send_file or send_doc methods, make sure that your directories or files do not have any accent, like \u00e3, \u00ea, \u00f1 etc.\n* Before using this script, open your browser with your whatsapp web account logged in and let it load your messages. Whatsapp web almost always backup your messages and this time loading the messages can break the script.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Automatically send Whatsapp messages and files",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/joaosuzuki98/pyzapkit"
    },
    "split_keywords": [
        "automation",
        "whatsapp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c8cd6f5bf655c25e9536b3d38e66a97f7ec07873070f9e9eb7c476eeb224587c",
                "md5": "fb5084b65d8a9ff340f6c661940625a4",
                "sha256": "87090ae121bb709f1fc2f107c6b020538b8df1c74ff76a566f6724e10b70f267"
            },
            "downloads": -1,
            "filename": "pyzapkit-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fb5084b65d8a9ff340f6c661940625a4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4522,
            "upload_time": "2023-09-10T15:44:44",
            "upload_time_iso_8601": "2023-09-10T15:44:44.888966Z",
            "url": "https://files.pythonhosted.org/packages/c8/cd/6f5bf655c25e9536b3d38e66a97f7ec07873070f9e9eb7c476eeb224587c/pyzapkit-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3acb7e871844cce8c58f02603009fb8fb7d45b849c02f74bda89333ebc5625de",
                "md5": "1fe2157ae58d1bbd7b325b8081a16bed",
                "sha256": "606a9d6c0d06160152d8aa368b15aa914773bdb30c6e377121bc0b6e1684b698"
            },
            "downloads": -1,
            "filename": "pyzapkit-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1fe2157ae58d1bbd7b325b8081a16bed",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4347,
            "upload_time": "2023-09-10T15:44:46",
            "upload_time_iso_8601": "2023-09-10T15:44:46.893181Z",
            "url": "https://files.pythonhosted.org/packages/3a/cb/7e871844cce8c58f02603009fb8fb7d45b849c02f74bda89333ebc5625de/pyzapkit-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-10 15:44:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "joaosuzuki98",
    "github_project": "pyzapkit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pyzapkit"
}
        
Elapsed time: 0.11300s