Skip to content

imthenapo/python-random-rtb-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Python Random RTB Request

What and why

This is a very basic randomized RTB Request generator using python library Faker.

The RTB object is built according to IAB Open RTB Protocol 2.4

I built this for usage with Locust - distributed load testing tool but it isn't implemented yet

Installation
git clone https://github.com/imthenapo/python-random-rtb-request.git
cd python-random-rtb-request
pip install ua_parser random numpy faker
Notes

Some code functions are customized to return common values for a 'mobile' RTB Request

i.e. the following function uses a mobile only useragent list:

def loadMobileUA():
    file = open("lib/mobileUserAgents.txt", "r")
    x = []
    for item in file:
        x.append(item.split('\n')[0])
    return np.array(x)

so change that according to your needs

About

Random RTB Request Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages