Project

fua

0.0
No commit activity in last 3 years
No release in over 3 years
Fake User-Agents of about %80 of real devices to use in headers of web crawlers. It keeps your script away from being nested by many UA strings.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0
 Project Readme

fua

Gem Version PyPI version

Fake User-Agent of many real devices(about %80 of real devices)

In many Python/Ruby script,we need to change our User-Agent,due to webserivce security or etc. By fua you can change your User-Agent easily and fast. It supports :

Smartphones :

Android(Browser,Firefox,WebView,Chrome,Opera)
iOS(Saffari,Firefox,Chrome)
Windows Phone(Browser)
Blackberry(Browser)
Palm(Blazer)
Fennec(Browser)
Symbian(Browser,Go_Browser,Opera_Mini,Opera)
Maemo(Browser,Firefox)
Motorola(MIB)
FirefoxOS(Browser)
Samsung(Tizen)

----

Desktop :
Windows(IE,Edge,Firefox,Chrome,Opera,Saffari,SeaMonkey)
macOS(Saffari,Firefox,Opera,Chrome,Camino,SeaMonkey)
Google Chrome(Chrome,Firefox)
FreeBSD(Chrome,Opera,Firefox)
Linux(Chrome,Opera,Firefox,SeaMonkey)
Unix(Chrome,Surf,Opera)

---

Wearable :

Google Glass

---

Smart TV :

Samsung(Browser,HBB,SmartHub)
Sharp
Sony
Technisat
VIZIO
Toshiba
Philips
Roku
tvOS
LG(Netcast)
Google TV
Mapple Browser
HBB TV
Google ChromeCast
Netgear
Panasonic

---

Game Consoles :

Xbox One
Playstation4

Usage:

Sample for Ruby:

require 'fua'
android_chrome_ua = Fua::SmartPhone::Android.new.Chrome
xboxOne_ua = Fua::Game_Consoles.new.Xbox_One
#And then use your User Agent string in your header of your requests.

Sample for Python:

import fua,requests
osx_chrome_ua = fua.Desktop.macOS().Chrome()
#If you print(osx_chrome_ua) , you will see the User Agent of Chrome in macOS
github_page = requests.get('https://github.com',headers={'User-Agent':osx_chrome_ua})
#Another sample
android = fua.SmartPhone.Android()
#Creating a SmartPhone Android device
android_ff_ua = android.Firefox()
#Android Firefox UserAgent

Installation:

For Python:

pip install fua

For Ruby:

gem install fua