Programming questions

King991

Newbie
Joined
Jun 16, 2020
Messages
2
Reaction score
0
Hey,
I started learning python a while ago. I mostly write scripts based on Selenium.
I tried writing a script that one of it's functions is to open a Facebook account.
I am planning to run this script but am afraid it might block my account.
I have some questions for those of you that might understand more about these type of scripts:
  • Will changing my user agent affect my chances of getting blocked on Facebook?
  • Does Facebook block scripts depending on the type of user agent (phone, PC, tablet) If so, which user agent is the safest to use?
  • Does selenium have headers of it's own? If so, what are their traits?
Would really appreciate it if you could answer these questions, any tip related to the subject would really help :)
Thanks
 
There's too small chance to block your account because of python selenium scripts. But just in case you could check it by "test account"
 
Selenium has a flag that can be detected with JS. So, using it as it is will get you banned in no time. Not only that, the initial browser dimension, mouse position etc can be detected too.
 
Try pyppeteer-stealth as an alternative to Selenium that’s harder for Facebook to detect.

As long as you don’t have the bot log in with your Facebook account it shouldn’t be associated. If you want to provide further protection then you can have all the script traffic go through a proxy.
 
I've never used Selenium, but to my understanding, your chances of achieving what you're after are nearly impossible with it. Python and Selenium are pretty antiquated in terms of botting. You'll need to switch to a less detectable library, like Puppeteer or Playwright. I don't know what kind of support Python has for those (I've heard of Pyppeteer), but you'll probably want to switch over to JavaScript if possible, as so many of the libraries that you'll need to make life easier are written for Node.

All this being said, you're probably very far away from achieving what you're after. There are many issues that need to be addressed in the realms of browser fingerprinting and bot detection, and it takes a lot of time, patience and trial-and-error to create something effective. And to my understanding, social media sites are some of the toughest to fool.
 
Hey,
I started learning python a while ago. I mostly write scripts based on Selenium.
I tried writing a script that one of it's functions is to open a Facebook account.
I am planning to run this script but am afraid it might block my account.
I have some questions for those of you that might understand more about these type of scripts:
  • Will changing my user agent affect my chances of getting blocked on Facebook?
  • Does Facebook block scripts depending on the type of user agent (phone, PC, tablet) If so, which user agent is the safest to use?
  • Does selenium have headers of it's own? If so, what are their traits?
Would really appreciate it if you could answer these questions, any tip related to the subject would really help
Hey,
I started learning python a while ago. I mostly write scripts based on Selenium.
I tried writing a script that one of it's functions is to open a Facebook account.
I am planning to run this script but am afraid it might block my account.
I have some questions for those of you that might understand more about these type of scripts:
  • Will changing my user agent affect my chances of getting blocked on Facebook?
  • Does Facebook block scripts depending on the type of user agent (phone, PC, tablet) If so, which user agent is the safest to use?
  • Does selenium have headers of it's own? If so, what are their traits?
Would really appreciate it if you could answer these questions, any tip related to the subject would really help :)
Thanks
Print all permutation of String both iterative and Recursive way?
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock