Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Logo

Random user agents generator for Facebook. It has 4 options: Dalvik, iPhone, Android, and Random (it's either Android or iPhone).

Terminal Installation

pip3 install PyAgents

Importing the module in your script

try:
    import PyBookAgents
except ModuleNotFoundError:
    os.system("pip3 install PyBookAgents")
    import PyBookAgents

Dalvik User Agent

from PyBookAgents import dalvik_ugen

Input Example:
print(PyBookAgents.dalvik_ugen())

Output Example:
>> Dalvik/2.1.0 (Linux; U; Android 12.0.0; OnePlus Build/MYJY.211413.014 [FBAN/FB4A;FBAV/220.0.0.47115;FBBV/317123424;FBDM/FBDM/{density=2.1,width=1814,height=1023};FBLC/hu_HU;FBRV/317123424;FBCR/Metfone;FBMF/OnePlus;FBBD/OnePlus_8_Pro;FBPN/com.facebook.lite;FBDV/OnePlus_8_Pro;FBSV/9;FBOP/19;FBBK/4;FBCA/x86_64:x86:arm64-v8a;]

iPhone User Agent

from PyBookAgents import iphone_ugen

Input Example:
print(PyBookAgents.iphone_ugen())

Output Example:
>> Mozilla/5.0 (iPhone; CPU iPhone OS 6_7_2 like Mac OS X) AppleWebkit/509.1.15 (KHTML, like Gecko) Mobile/21B101 [FBAN/FBIOS;FBAV/445.0.0.35.117;FBBV/548375166;FBDV/iPhone12,8;FBMD/iPhone;FBSN/iOS;FBSV/6_7_2;FBSS/3;FBID/phone;FBLC/lo_LA;FBOP/30;FBRV/554305165]

Android User Agent

from PyBookAgents import android_ugen

Input Example:
print(PyBookAgents.android_ugen())

Output Example:
>> Mozilla/5.0 (Linux; Android 13.0.0; OnePlus Build/CH92.213488.013; wv) AppleWebkit/512.27 (KHTML, like Gecko) Version/4.0 Chrome/107.0.5362.121 Mobile Safari/435.33 Instagram 312.1.0.34.111 Android (34/14; 420dpi; 1080x2133; oneplus; OnePlus_8_Pro; r0s; s5e9925; de_DE; 553971276)

or

>> Mozilla/5.0 (Linux; Android 9.0.0; Realme Build/YDCQ.214379.010; wv) AppleWebkit/598.28 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5872.119 Mobile Safari/536.29 [FB_IAB/FB4A;FBAV/445.0.0.34.118;]

Random: iPhone & Android

from PyBookAgents import random_ugen

Input Example:

print(PyBookAgents.random_ugen())

Output Example:
>> It's either Android or iPhone User Agent

Social Links

FacebookTelegram

Release files for PyBookAgents 0.0.1.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyBookAgents 0.0.1.dev0
File Size Uploaded
PyBookAgents-0.0.1.dev0.tar.gz 2.5 MB Details

Release files / PyBookAgents-0.0.1.dev0.tar.gz

Download URL PyBookAgents-0.0.1.dev0.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
76cc6016779f7637c266e0505c944beeecc35ea0718404c20d4ce3a85c6017e8
BLAKE2b-256 checksum
How to use checksums
f72a487262b84482a401329339317a1a40f62631f4567d8e6444f79db2e99664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.1.dev0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page