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

ability to set user agent #119

Closed
troyhopwood opened this issue Mar 15, 2022 · 4 comments
Closed

ability to set user agent #119

troyhopwood opened this issue Mar 15, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@troyhopwood
Copy link

I used to get a consistent user agent. Now, each time I start the bot, I get a new user agent. I would expect Instagram to get suspicious when suddenly I start using the Co Co browser. I don't see anywhere in the settings where I can change this.

In the ideal world, I would be able to set this to false as well as specify my own user agent so it matches the browser I use manually.

@mifi
Copy link
Owner

mifi commented Mar 16, 2022

yea i've been thinking about this. instauto randomizes user agent. I think if everyone uses the exact same user agent, that would also be problematic. I want to try to solve it in a generic way, but I think having the user inputt a custom user agent does not resonate with the "simple" nature of this bot. maybe a random user agent should be generated when the bot starts the first time and then stored. then in consecutive runs it should use the same user agent.
Then on the other side, instagram may find this suspicious too, because usually people will upgrade their browsers, hence the user agent (version) will increase. if the bots agent is completely static that could raise suspicion.

@troyhopwood
Copy link
Author

It seems random is the easy option. But it would be awesome to see something in advanced settings being able to choose a browser (e.g. Firefox) and then have it always use that browser. Version is always going to be a problem because if the user doesn't update the app, they will end up with a stale user agent over time.

@mifi mifi changed the title randomizeUserAgent no longer set ability to set user agent Mar 20, 2022
@mifi mifi added the enhancement New feature or request label Mar 20, 2022
@kingbotss
Copy link

we can set like this.
page.setUserAgent(useragent.toString());

@mifi mifi closed this as completed in 6288fac Jul 21, 2022
@mifi
Copy link
Owner

mifi commented Jul 21, 2022

now implemented in the latest version

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

No branches or pull requests

3 participants