D
Deleted member 332870
Guest
True, but when you use requests, you do the same ehen xou click at a website, you just have to co figure the header correctly.
Why would you choose Python for bots?
Python is used for scientific calculations, because there are a lot of free scientific libraries available.
This is the only advantage of Python in today's world. Otherwise it sucks in almost every aspect:
1. It is slower (sometimes much slower than alternatives)
2. It has an ugly, unreadable syntax
3. Creating native GUI is a pain in the ass, QT and alike look fugly on Windows
And the list goes on.
Your bots require scientific libraries? If not, there is no reason to choose Python.
Why would you choose Python for bots?
Python is used for scientific calculations, because there are a lot of free scientific libraries available.
This is the only advantage of Python in today's world. Otherwise it sucks in almost every aspect:
1. It is slower (sometimes much slower than alternatives)
2. It has an ugly, unreadable syntax
3. Creating native GUI is a pain in the ass, QT and alike look fugly on Windows
And the list goes on.
Your bots require scientific libraries? If not, there is no reason to choose Python.
Sir, you clearly don't code in pythonit has the most elegant syntax among all the existing programming languages. It's the best tool for web scraping so making web bots is really efficient with it
making game bots, however, is a different question here
By the way, instagram, google, youtube and many more are built with python![]()
Thats absolutly not true, as I say I am working at a international IT company (we are make projects for deutsch telekom) and websitr automatisation, web test, business tests, backend tests, test automatisation uses python and robotframework(a framework bulit on python).
Yeah, using indentation instead curly braces for scoping is the most "elegant" solution out there.
The fact that you use Python doesnt mean it is the best choice you could have made. Many start-ups use Python. The reason is once again - a lot of scientific libraries.
See yourself where your company looses:
https://benchmarksgame.alioth.debian.org/u64q/python.html
https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=node&lang2=python3
Lol Python vs Java? You can't be serious. My company doesn't loose at anything. As we are a big company and founding/resources (servers, PCs, workstations), our most important resource is time. Just example, I am at the company as an intern, and they gave me an Dell Latitude with one of the top i5, and 8gb ram, with SSD, and my computer considered an 'old' machine at the company, I will get a new about 3-4 months. The new comps comes with i5/i7 16gb ram etc. So the most important thing is develop time and code flexibility.
So just compare develop time between Java VS Python.
I develop an Selenium based bot in Python for example in 2 hours, and in java it takes 5-6 hours, if I use OOP paradigm.
And java use an "idiot" virtual machine which eat your memory to shit. A python based requests bot eats about 5-15 mb, a java based about 50-100 mb.
Sure, Java great for EE softwares, bank softwares or high complexity systems.
Dude, this isn't a 'my programming has a bigger dick' thread. OP specifically mentioned he is using Python.
OP, why don't use set up a VPS to run the code on, that way you don't need to worry about it impacting your primary workstation. Also PYAUTOGUI is super easy to use, can automate simple bot actions, and it can be made to be 100% un-detectable.
I think it could be fully automated with requests. Nearly all site could be automatised with it, i built many bots twitter, tumblr, xvideos xhamster, so probably facebook easily can be done
Huh Sorry I didnt read all things in your post. But ok assembler and C is a great thing (I am learning as an electrical engineer so I know both pretty well) but some tools as xrumer anf etc cant automate many things that would you like to. Okay intrepetered languages are shit but like python have great libraries and yku could make great thing in it.programming threads are always fun in the IM world as all the hobby scripters there think they are elite programmers, because they know one scripting language, but using +10 browsers to multithread on a bloated GUI is not only clumsy and lame, its just plain inefficient + on top of it, insecure. only amateurs do that seriously, deal with it. (your only excuse would be: i wanted something fast and i dont care if its efficient, it should just work asap) also scripting languages will ALWAYS be slower as they need to run through the interpreter.
why insecure? because you run all the scripts on the remote website which could infect your computer. if you send direct GET/POST requests and only parse the data that is returned from a request, you don't execute it. there are also lib's to run javascript inside C# for example, so there is really no need to use a full browser. you can also automate mouse movement, so there is nothing that you couldn't do manually that a headless browser does. what do you think the browsers are written in? firefox, chrome, IE all done in C of course. the higher languages like python are mostly made with C (although the interpreter can also be written in other languages like java of course), your OS is made in C and Assembler. so what makes you think you need selenium to automate web2.0 stuff?
python got its place, but i agree the syntax is ugly and just for the record, POSIX C still and will always have the most pretty syntax, period.
oh and for those asking if facebook can be automated without headless browsers like selenium: well of course, just check xrumer its already doing it since a while![]()
Why would you choose Python for bots?
Python is used for scientific calculations, because there are a lot of free scientific libraries available.
This is the only advantage of Python in today's world. Otherwise it sucks in almost every aspect:
1. It is slower (sometimes much slower than alternatives)
2. It has an ugly, unreadable syntax
3. Creating native GUI is a pain in the ass, QT and alike look fugly on Windows
And the list goes on.
Your bots require scientific libraries? If not, there is no reason to choose Python.
lol @lancis has no idea what he's talking about.... Python is a great general purpose language, easy to learn and use, and fast enough for 99% of use cases, ESPECIALLY stuff like IM bots. Start-ups use it because of the huge community and flexibility of the language, not it's scientific libs lmao.
once again my eyes bleed ...
I program in javascript, python, c++ and lately have started to use Go. and Python is usually my first choice for quick prototyping glue language( go has the same potential but still lacks 3rd party libraries).
the only problem I can see with Python is if you want to sell your code since is a interpreted language, you have to take measures to obfuscate/pack it or it will be reverted back to source code.