Skip to content

'hits' Argument is not doing a loop #2

@shelomito12

Description

@shelomito12

Thanks for this awesome script!

It's working OK in my Linux box, except the following:

hits = input("Enter The number of Viewers : ")

when I enter any number, it always shows as 1 viewer

So the hits arg is not doing a loop

for i in range(hits):
run()

Also, as a suggestion, is it possible to randomize the headers with each individual request once the 'hits' arg is fixed? For example. if I choose 3 as a numbers of Viewers, then 1 will have its own headers (apple mobile), 2 will have its own headers (android mobile) and 3 will have its own headers (pc chrome). You can see a list of different headers here: https://deviceatlas.com/blog/list-of-user-agent-strings

Last but not least, how do I make the script as script mode instead of interactive mode? I'd like to have my URL predefined in the script and to run it in the background.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions