pptools


Namepptools JSON
Version 0.0.3 PyPI version JSON
download
home_page
SummaryAn assistant module for writing parsers
upload_time2023-05-19 14:07:43
maintainer
docs_urlNone
authorAlexander554
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            PyParsTools - is an auxiliary module for writing parsers. It has built-in examples of different types of parsers, creating headers, installing all the necessary modules and getting the soup object in one line. Below are examples of usage:

```python
from pptools.pptools import getSoup

headers = {'User-agent': 'Mozilla 5.0'}
soup = getSoup(url='https://sunlight.net/catalog', headers=headers).requests()
```

In addition to requests, the request can also be made via urllib3, Selenium and aiohttp



As mentioned earlier, this module is able to write the basics of 3 types of parsers for you - standard, asynchronous, browser-based. All parsers are created in your directory as .py files.
```python
from pptools.pptools import Parsers

Parsers.getRequestsParser()
Parsers.getAsyncioParser()
Parsers.getSeleniumParser()
```

Finally, my module can install all the libraries necessary for parsing itself and create a dictionary of headers for autofication on the site.

```python
from pptools.pptools import Helper

Helper.installAll()
headers = Helper.getHeaders()
Helper.aboutStatusCode(status_code=403)
#Says what to do when receiving different responses from the site
Helper.download_photo('url-to-your-photo')
#Downloads the photo from the link
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pptools",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Alexander554",
    "author_email": "gaa.280811@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7e/4b/84cf1e9227d90916b8f81e94735d6fb8cd886e34815b4a4956ea17bf388c/pptools-0.0.3.tar.gz",
    "platform": null,
    "description": "PyParsTools - is an auxiliary module for writing parsers. It has built-in examples of different types of parsers, creating headers, installing all the necessary modules and getting the soup object in one line. Below are examples of usage:\r\n\r\n```python\r\nfrom pptools.pptools import getSoup\r\n\r\nheaders = {'User-agent': 'Mozilla 5.0'}\r\nsoup = getSoup(url='https://sunlight.net/catalog', headers=headers).requests()\r\n```\r\n\r\nIn addition to requests, the request can also be made via urllib3, Selenium and aiohttp\r\n\r\n\r\n\r\nAs mentioned earlier, this module is able to write the basics of 3 types of parsers for you - standard, asynchronous, browser-based. All parsers are created in your directory as .py files.\r\n```python\r\nfrom pptools.pptools import Parsers\r\n\r\nParsers.getRequestsParser()\r\nParsers.getAsyncioParser()\r\nParsers.getSeleniumParser()\r\n```\r\n\r\nFinally, my module can install all the libraries necessary for parsing itself and create a dictionary of headers for autofication on the site.\r\n\r\n```python\r\nfrom pptools.pptools import Helper\r\n\r\nHelper.installAll()\r\nheaders = Helper.getHeaders()\r\nHelper.aboutStatusCode(status_code=403)\r\n#Says what to do when receiving different responses from the site\r\nHelper.download_photo('url-to-your-photo')\r\n#Downloads the photo from the link\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An assistant module for writing parsers",
    "version": "0.0.3",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c309d3773d0312a59d8d629ac0e2118418cd4f67d38ac3e112721fa350766005",
                "md5": "8e02de6177d6fb632f11bb688d00a0fe",
                "sha256": "662a56bfe10733f611346c728257ede813fbc8923ff5242108b351b876e68807"
            },
            "downloads": -1,
            "filename": "pptools-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8e02de6177d6fb632f11bb688d00a0fe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6792,
            "upload_time": "2023-05-19T14:07:40",
            "upload_time_iso_8601": "2023-05-19T14:07:40.533573Z",
            "url": "https://files.pythonhosted.org/packages/c3/09/d3773d0312a59d8d629ac0e2118418cd4f67d38ac3e112721fa350766005/pptools-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e4b84cf1e9227d90916b8f81e94735d6fb8cd886e34815b4a4956ea17bf388c",
                "md5": "d6f5bca9b085d0219fec85ee814808ad",
                "sha256": "6b110a3b53378bb55719f1346ff3cdc0bcba128a6ece45fa23501d402ff06ece"
            },
            "downloads": -1,
            "filename": "pptools-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d6f5bca9b085d0219fec85ee814808ad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6323,
            "upload_time": "2023-05-19T14:07:43",
            "upload_time_iso_8601": "2023-05-19T14:07:43.138947Z",
            "url": "https://files.pythonhosted.org/packages/7e/4b/84cf1e9227d90916b8f81e94735d6fb8cd886e34815b4a4956ea17bf388c/pptools-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-19 14:07:43",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pptools"
}
        
Elapsed time: 0.07765s