mimic-useragent


Namemimic-useragent JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/kurotom/mimic_useragent
SummarySimple user-agent generator (Firefox).
upload_time2024-07-10 18:16:44
maintainerNone
docs_urlNone
authorkurotom
requires_python<4.0,>=3.7
licenseLGPL-3.0-or-later
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mimic_user_agent

A simple function that returns a random or static fake 'user-agent', Firefox browser only.

# Uso

```python
>>> from mimic_useragent import mimic_user_agent
>>> mimic_user_agent()
'Mozilla/5.0 (X11; Ubuntu; Linux; x86_64; rv:120.0) Gecko/20100101 Firefox/120.0'
>>> mimic_user_agent(seed=10)
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0'
```

Receives an `int` parameter for the use of a *seed*, default is `None`.


# Tests

```python
python -m unittest
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kurotom/mimic_useragent",
    "name": "mimic-useragent",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "kurotom",
    "author_email": "55354389+kurotom@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/5e/82/3bd26a6b42de0e05ec30a3533f1b9aa268f2e0aac6fc089cce8e6bb84f49/mimic_useragent-0.1.3.tar.gz",
    "platform": null,
    "description": "# mimic_user_agent\n\nA simple function that returns a random or static fake 'user-agent', Firefox browser only.\n\n# Uso\n\n```python\n>>> from mimic_useragent import mimic_user_agent\n>>> mimic_user_agent()\n'Mozilla/5.0 (X11; Ubuntu; Linux; x86_64; rv:120.0) Gecko/20100101 Firefox/120.0'\n>>> mimic_user_agent(seed=10)\n'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0'\n```\n\nReceives an `int` parameter for the use of a *seed*, default is `None`.\n\n\n# Tests\n\n```python\npython -m unittest\n```\n",
    "bugtrack_url": null,
    "license": "LGPL-3.0-or-later",
    "summary": "Simple user-agent generator (Firefox).",
    "version": "0.1.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/kurotom/mimic_useragent/issues",
        "Homepage": "https://github.com/kurotom/mimic_useragent",
        "Repository": "https://github.com/kurotom/mimic_useragent"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2411efefd26b553b73033889aa9d8ef3e5a5f683d52f10cda12c9cd2841d3d57",
                "md5": "64609505b0ba1422b1aca34351c721d6",
                "sha256": "b3a93a91bdd1fc69606f22daddb7476faf5e9f100c1d46e72e1cc6fb7f8bd083"
            },
            "downloads": -1,
            "filename": "mimic_useragent-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "64609505b0ba1422b1aca34351c721d6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.7",
            "size": 14499,
            "upload_time": "2024-07-10T18:16:42",
            "upload_time_iso_8601": "2024-07-10T18:16:42.523931Z",
            "url": "https://files.pythonhosted.org/packages/24/11/efefd26b553b73033889aa9d8ef3e5a5f683d52f10cda12c9cd2841d3d57/mimic_useragent-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e823bd26a6b42de0e05ec30a3533f1b9aa268f2e0aac6fc089cce8e6bb84f49",
                "md5": "59ed72c39a14ea2025df6e8aa40ff3c7",
                "sha256": "6e1714d518ffd770b79d2c49e84657697d49485802fe65ecc7ea787110afb5f1"
            },
            "downloads": -1,
            "filename": "mimic_useragent-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "59ed72c39a14ea2025df6e8aa40ff3c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.7",
            "size": 14008,
            "upload_time": "2024-07-10T18:16:44",
            "upload_time_iso_8601": "2024-07-10T18:16:44.069082Z",
            "url": "https://files.pythonhosted.org/packages/5e/82/3bd26a6b42de0e05ec30a3533f1b9aa268f2e0aac6fc089cce8e6bb84f49/mimic_useragent-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-10 18:16:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kurotom",
    "github_project": "mimic_useragent",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "mimic-useragent"
}
        
Elapsed time: 0.33695s