Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🙋🏿 Randomize User Agent #2

Open
taneishamitchell opened this issue Aug 22, 2020 · 1 comment
Open

🙋🏿 Randomize User Agent #2

taneishamitchell opened this issue Aug 22, 2020 · 1 comment

Comments

@taneishamitchell
Copy link

For the below snippet in util/parser.py to randomize UA why not use shadow-useragent or some package so you don't have to worry tracking updates to the different types of UAs?

def get_random_ua():
    random_ua = ''
    ua_file = 'ua_file.txt'
    try:
        lines = open(ua_file).read().splitlines()
        random_ua = random.choice(lines)
    except Exception as e:
        logging.error(log.get_error_msg(e))
    finally:
        return random_ua
@sdclarkelab
Copy link
Owner

Thats a good suggestion. I will look into it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants