{ "info": { "author": "Drinor Selmanaj", "author_email": "drinorselmanaj@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Random User Agents\n==================\n\n[![Build Status](https://travis-ci.org/drinorselmanaj/random_useragent.svg?branch=master)](https://travis-ci.org/drinorselmanaj/random_useragent)\n\nRandom User Agents is a python library that provides an easy way to generate random user-agent strings.\n\nInstallation\n------------\n\nYou can install random_useragent by running the following command:\n\n pip install random_useragent\n\nOr you can download direct from ``Github``\\ \\_ and install it manually.\n\nUsage\n-----\n\nTo randomly select an aspect ratio you can use ``.get_aspect_ratio_list()``, to generate screen resolution ``.random_resolution()`` and ``.random_agent()`` for random user-agent strings.\nFor example:\n\n```python\n\n from random_useragent.random_useragent import Randomize\n\n # Get aspect ratio list.\n r_agent = Randomize()\n r_agent.get_aspect_ratio_list() # returns ['3:2', '4:3', '5:3', '5:4', '16:9', '16:10'].\n\n # Takes 2 arguments (self, aspect_ratio).\n r_agent.random_resolution('3:2') # returns screen resolution.\n\n # Takes 3 arguments (self, device_type, os)\n r_agent.random_agent('desktop','linux') # returns 'Desktop / Linux'\n r_agent.random_agent('desktop','mac') # returns 'Desktop / Linux'\n r_agent.random_agent('desktop','windows') # returns 'Desktop / Macintosh'\n\n r_agent.random_agent('tablet','android') # returns 'Tablet / Android'\n r_agent.random_agent('tablet','ios') # returns 'Tablet / iOS'\n\n r_agent.random_agent('smartphone','android') # returns 'Smartphone / Android'\n r_agent.random_agent('tablet','ios') # returns 'Smartphone / iOS'\n```\n\nLicense\n-------\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/drinorselmanaj/random_useragent", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "random-useragent", "package_url": "https://pypi.org/project/random-useragent/", "platform": "", "project_url": "https://pypi.org/project/random-useragent/", "project_urls": { "Homepage": "https://github.com/drinorselmanaj/random_useragent" }, "release_url": "https://pypi.org/project/random-useragent/1.0/", "requires_dist": null, "requires_python": "", "summary": "A python library for generating random user-agent strings", "version": "1.0" }, "last_serial": 3491955, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "92c8b32ab2f5c6518d1316a14475c017", "sha256": "7eb5c098ed118d300f432d71771200f3decd281fed17a0d1ddf71ecff8dbfdaf" }, "downloads": -1, "filename": "random_useragent-1.0.tar.gz", "has_sig": false, "md5_digest": "92c8b32ab2f5c6518d1316a14475c017", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6203, "upload_time": "2018-01-15T20:00:46", "url": "https://files.pythonhosted.org/packages/cd/bc/165c6da4bf6a33cfbfa1fa1fef639791657bceb5c479696fac80597faffb/random_useragent-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "92c8b32ab2f5c6518d1316a14475c017", "sha256": "7eb5c098ed118d300f432d71771200f3decd281fed17a0d1ddf71ecff8dbfdaf" }, "downloads": -1, "filename": "random_useragent-1.0.tar.gz", "has_sig": false, "md5_digest": "92c8b32ab2f5c6518d1316a14475c017", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6203, "upload_time": "2018-01-15T20:00:46", "url": "https://files.pythonhosted.org/packages/cd/bc/165c6da4bf6a33cfbfa1fa1fef639791657bceb5c479696fac80597faffb/random_useragent-1.0.tar.gz" } ] }