Convert Python Bot Into A PC Software

samkalt

Regular Member
Joined
Jan 3, 2024
Messages
279
Reaction score
61
I actually create a python automation bot and want to start selling but i want to convert into a software to add function like licenced key so only verified buyers can only get access to it.

Or is there any way where only verified buyers can get access to my python bot after to they purchase it.
 
You can sell on gurmroad, and get purchased only verified buyers.
 
You can sell on gurmroad, and get purchased only verified buyers.
What a funny guy,

Ok then tell me what should I do if the buyer share my product for free on internet or to thousands users isn't it considered loss for my business.

If I had implemented licence key function where the only buyers can get benefits. Even if they try to share it with others with their given licence key the software won't allow itself to run on computer because it can run on one computer with one unique licence key. I hope you understand in this basic.
 
Last edited:
You have to obfuscate your source code. Then build a login/authorization mechanism into your python code, where you for example request an external api of yours and check if the users provided license code is real. Then you have to google how to make a .exe out of a python program, it’s easy.
 
What a funny guy,

Ok then tell me what should I do if the buyer share my product for free on internet or to thousands users isn't it considered loss for my business.
Blender marketplace seems to do pretty well. Generally people don't share what they pay for, and if they do its only to a limited number of people rather than the thousands we think.

I would program the bots in c# and release a windows app though. If you really want a license, you need to lock shit down, and python doesn't do that.
 
You have to obfuscate your source code. Then build a login/authorization mechanism into your python code, where you for example request an external api of yours and check if the users provided license code is real. Then you have to google how to make a .exe out of a python program, it’s easy.
Blender marketplace seems to do pretty well. Generally people don't share what they pay for, and if they do its only to a limited number of people rather than the thousands we think.

I would program the bots in c# and release a windows app though. If you really want a license, you need to lock shit down, and python doesn't do that.
I updated my answer kindly read again.
 
im sure libraries exist to facilitate that.
start googling "how to secure python program with license keys".
obfuscating code is helpful too. i recently saw a tutorial how to use x64dbg (debugging utility). very easy to crack amateur programs. naturally you want some roadblocks to make it difficult for amateurs.
 
I actually create a python automation bot and want to start selling but i want to convert into a software to add function like licenced key so only verified buyers can only get access to it.

Or is there any way where only verified buyers can get access to my python bot after to they purchase it.
make an API for verifying the License
 
I actually create a python automation bot and want to start selling but i want to convert into a software to add function like licenced key so only verified buyers can only get access to it.

Or is there any way where only verified buyers can get access to my python bot after to they purchase it.
Care to say about what the bot do?
 
Ok guys what if any user try to acces the script by clicking on "edit python Idle" he will still access the script.
 
I actually create a python automation bot and want to start selling but i want to convert into a software to add function like licenced key so only verified buyers can only get access to it.

Or is there any way where only verified buyers can get access to my python bot after to they purchase it.
Python is probably not the best language for this. At the very least, you might want to obfuscate your code and package it using pyinstaller. Then, add some form of license verificarion that calls back to a server you control. Keep in mind, if someone wants to crack your software, they will crack it.
 
Python is probably not the best language for this. At the very least, you might want to obfuscate your code and package it using pyinstaller. Then, add some form of license verificarion that calls back to a server you control. Keep in mind, if someone wants to crack your software, they will crack it.
So what do I do ?
 
You can always take some core functionality out of the desktop program and put it on a server accessible via an API. Then the bot needs to call the API and authenticate itself or it won’t work properly.

Obviously I don’t know your bot, but basic stuff like request parameters, or selectors if you work with selenium could work. Maybe even more complicated core features
 
You can always take some core functionality out of the desktop program and put it on a server accessible via an API. Then the bot needs to call the API and authenticate itself or it won’t work properly.

Obviously I don’t know your bit, but stuff like request parameters, or selectors if you work with selenium, but could probably pull even more core functionality into the API
Ok so I have lot's of automation bots like let's say quora bot so I only and only want verified buyers will able to use it.
 
I got that, I mean change the bot to not work as a standalone application but rely on a backend. (which you control)

E.g. if you store cookies for logged in users, don’t store them locally but on a server. When the bot wants to use the cookie it has to get it from the server and authenticate itself. You know your bot, I think you’ll find more practical applications of this idea.

If you mix that approach with some of the other suggestions you got here, it will be a lot of work to “crack” your bot and thereby unlikely to happen
 
If you want your service to be exclusive and have total control over it, the only way is to deploy it as an API like ImBackBaby said.
 
Judging by your messages here, your understanding of software engineering seems to be on a very basic level. Nothing wrong with that but this limits your options.

Learning how to set up a proper authentication system will take a lot of time, this isn't a one hour affair or a copy-and-paste solution. If you ask me, your best option is it to partner up with someone who is more experienced, who can teach you how to package your code and help you build some sort of authentication. Nobody will do this for free though and there will be some operating costs for hosting a server.

The more simple way is to sell the program together with a license key that doesn't require online authentication. In its most basic form one license key will be valid for all installations. Although, as some people have mentioned, your program is unlikely to be pirated so that may be just enough.

There are some creative ways that one could come up with to limit the use of the license key so that one key isn't valid for all distributions of your program but this will require more knowledge and experience, so you will probably need someone's help with this.
 
Back
Top