[Python] Bot Programming - Requests or Selenium or other Library?

stupidity

Newbie
Joined
Oct 31, 2019
Messages
7
Reaction score
0
Hello Guys,

im pretty new to Python and im playing arround with it and wrote some first tools i could use successfully. Now i want to write a little Bot to train my skills a bit further.

My understanding so far is, that Selenium headless is very slow compared to requests but the advantage could be, that i could simulate a human being more easily? Is that correct?

So my plan is to automate the login to a certain page and upload stuff on it afterwards. As the website is pretty good secured i would need to spoof UA (which should be easy) but also i need to spoof a unique Canvas Fingerprint and Web GL Renderring and maybe even the Audio Prints.

So for this purpose, which would be the better choice and why?

Thanks a lot!
 
i also forgot to say this important thing: I might have to bypass captcha from time to time
 
Selenium would be a better choice since you need to load the page as if you open a browser. Imitating human behavior can be done easier.

I did this to automate grammar fixing with Grammarly lol.
 
Selenium would be a better choice since you need to load the page as if you open a browser. Imitating human behavior can be done easier.

I did this to automate grammar fixing with Grammarly lol.

Thanks for your quick reply. Do you have any idea how to spoof Canvas Fingerprint on Selenium...Coudnt find anything on google ..
 
There was a thread here talking about spoofing the browser fingerprinting https://www.blackhatworld.com/seo/spoofing-browser-fingerprint-in-selenium.916725/

Basically, you need to create several (many) "profiles" and maintain each of the profile as a "person" that does something.

Yes.

User agent
Webrtc!
Screen size
Fonts
Addon variety
Also some websites use on screen heat mapping so if you can emulate hovering over random links etc it doesn't hurt.

There's a start
And you might need to emulate these too
List of fingerprinting sources
  1. UserAgent
  2. Language
  3. Color Depth
  4. Screen Resolution
  5. Timezone
  6. Has session storage or not
  7. Has local storage or not
  8. Has indexed DB
  9. Has IE specific ‘AddBehavior’
  10. Has open DB
  11. CPU class
  12. Platform
  13. DoNotTrack or not
  14. Full list of installed fonts (maintaining their order, which increases the entropy), implemented with Flash.
  15. A list of installed fonts, detected with JS/CSS (side-channel technique) – can detect up to 500 installed fonts without flash
  16. Canvas fingerprinting
  17. WebGL fingerprinting
  18. Plugins (IE included)
  19. Is AdBlock installed or not
  20. Has the user tampered with its languages
  21. Has the user tampered with its screen resolution
  22. Has the user tampered with its OS
  23. Has the user tampered with its browser
  24. Touch screen detection and capabilities
  25. Pixel Ratio
  26. System’s total number of logical processors available to the user agent.
https://www.andreafortuna.org/2017/...how-the-companies-use-it-to-track-you-online/
 
Back
Top