Author

Topic: Primedice Python Bot (Read 2893 times)

newbie
Activity: 8
Merit: 0
November 29, 2016, 08:23:05 PM
#13
hello,
How can i implement the QR Code because im getting this error  "Unauthorized", and im sure 100% is from that QR Code Security..
And another question is : i have a my own strategy that I have been using on primedice , how can i add to this python code?


thanks
newbie
Activity: 2
Merit: 0
October 27, 2016, 12:35:08 AM
#12
~
I'd definitely want to check out the code if you plan on adding it to Github. Not thinking of any specific features at the moment, as I'm currently playing dice on another site.
But I'm thinking of adjusting the code to add support for multiple dice websites, I'm quite busy atm though so if it's just on Github, I can work on it whenever, or create a fork in due time Smiley

If you don't understand any of the code from the aactual github code released by primedice, just ask me!

I also have a gambling strategy that I have been using on primedice taht I could add to my code.

I use the api key into below link it works fine it provide all info
https://api.primedice.com/api/users/1?api_key=

my python code getting info work fine

import urllib, json
url = "https://api.primedice.com/api/users/1?api_key="
response = urllib.urlopen(url)
data = json.loads(response.read())
print data

primedice api make a bet commend
Make a bet
POST /bet
Expects amount, target (the 0-99.99 number), and condition (an "<" or ">"). Requires authentication.
https://api.primedice.com/api/bet?api_key=&amount=0.00010000&target=50&condition=<
above link not working , then how i make a bet by used with api key

my python code


import requests
post_data = {'api_key':'', 'amount':'0.00001000', 'target':'50', 'condition':'<'}
post_response = requests.post(url='https://api.primedice.com/api/bet?', data=post_data)
print post_response

output
or Unotherized what, wrong in the code

don't commend some working code please
member
Activity: 63
Merit: 10
January 02, 2016, 11:26:35 AM
#11
~
I'd definitely want to check out the code if you plan on adding it to Github. Not thinking of any specific features at the moment, as I'm currently playing dice on another site.
But I'm thinking of adjusting the code to add support for multiple dice websites, I'm quite busy atm though so if it's just on Github, I can work on it whenever, or create a fork in due time Smiley

If you don't understand any of the code from the aactual github code released by primedice, just ask me!

I also have a gambling strategy that I have been using on primedice taht I could add to my code.
legendary
Activity: 1792
Merit: 1283
January 01, 2016, 07:54:28 PM
#10
Hello,

I would like to use the Primedice API in order to get a python bot.

Does anyone have the code needed to produce the python gambling bot that they could place here in code tags?

Thank you in advance.

Coinhelper

Any reason why python? just wonderin... Anyway here is code from some using python to bot on pd.. https://github.com/nico202/primeDiceBot

NOTE: i have not tested and/or checked the codes for any backdoors or w.e.. i did not made this code nor i recommend it to be used out of the box.. and i take no responsibilty on whatever it may cause. Use it only as your basis..

-uni

I use Python because it is one of the few languages I very much enjoy coding.
I have two IDEs which work very well and offer suggestions and improvements as you type if you hit certain keys!
It is also a language that is supported by the most operating systems (and is preinstalled on linux!)

Thanks for the link! That bot on its own works quite well, and I will modfy it to ensure it has only the code I want!
Are you planning on releasing your own modifications? I'd be interested in using a bot like that, plus I'm quite interested in Python myself.

The modifications would probably be useless to you as I am just removing code that I don't necessarily need.

Also, I think I may have breached the time request. Accidently set it to 0.001 seconds... oops!

Do you know any way of rectifying this situation.


Also: If you want a specific change done to the program I can easily do that for you. As it is under the GNU license I can modify all of the code to your personal preference if you would like?


EDIT: I thought that I would add, if you wanted, I can comment on all the code or show you each of the lines individually with an explanation of what it does and how it works, if you would like me to? I can also post anything I create for you on Github and others can learn from it.
I'd definitely want to check out the code if you plan on adding it to Github. Not thinking of any specific features at the moment, as I'm currently playing dice on another site.
But I'm thinking of adjusting the code to add support for multiple dice websites, I'm quite busy atm though so if it's just on Github, I can work on it whenever, or create a fork in due time Smiley
member
Activity: 63
Merit: 10
January 01, 2016, 07:11:15 PM
#9
Well this is not exactly Python, but maybe this code will help you a little, or you change your mind about programming this bot in Python.
Check out this thread about other PrimeDice bot: https://bitcointalksearch.org/topic/primedice-better-bot-fastest-lightest-advanced-java-based-bot-1018417




ewwww, Java lol. The python bot posted above works quite well in my experience. I don't gamble much but do like coding bots as well.

This bot (although written in javascript) is nice for folks that have little programming experience: https://bitcointalksearch.org/topic/js-primedice3-bot-wgui-verifier-dark-theme-hotkeys-upd-01112015-831117

Yeah I don't like Java either. Java seems to be the preferred language for everything but its very hard for amateurs to code in it. Python is very forgiving and the debugger is easy to find any issues.

Python is great, it is more like psuedocode.
JAVA is OK, but only if you are using an IDE like Android Studio that can point out mistakes as you go along.

Simple java is ok, but I don't really know about the JAR part on the file extension.
legendary
Activity: 3808
Merit: 1723
January 01, 2016, 06:05:56 PM
#8
Well this is not exactly Python, but maybe this code will help you a little, or you change your mind about programming this bot in Python.
Check out this thread about other PrimeDice bot: https://bitcointalksearch.org/topic/primedice-better-bot-fastest-lightest-advanced-java-based-bot-1018417




ewwww, Java lol. The python bot posted above works quite well in my experience. I don't gamble much but do like coding bots as well.

This bot (although written in javascript) is nice for folks that have little programming experience: https://bitcointalksearch.org/topic/js-primedice3-bot-wgui-verifier-dark-theme-hotkeys-upd-01112015-831117

Yeah I don't like Java either. Java seems to be the preferred language for everything but its very hard for amateurs to code in it. Python is very forgiving and the debugger is easy to find any issues.
legendary
Activity: 1064
Merit: 1000
January 01, 2016, 05:26:13 PM
#7
Well this is not exactly Python, but maybe this code will help you a little, or you change your mind about programming this bot in Python.
Check out this thread about other PrimeDice bot: https://bitcointalksearch.org/topic/primedice-better-bot-fastest-lightest-advanced-java-based-bot-1018417




ewwww, Java lol. The python bot posted above works quite well in my experience. I don't gamble much but do like coding bots as well.

This bot (although written in javascript) is nice for folks that have little programming experience: https://bitcointalksearch.org/topic/js-primedice3-bot-wgui-verifier-dark-theme-hotkeys-upd-01112015-831117
member
Activity: 63
Merit: 10
January 01, 2016, 04:30:51 PM
#6
Hello,

I would like to use the Primedice API in order to get a python bot.

Does anyone have the code needed to produce the python gambling bot that they could place here in code tags?

Thank you in advance.

Coinhelper

Any reason why python? just wonderin... Anyway here is code from some using python to bot on pd.. https://github.com/nico202/primeDiceBot

NOTE: i have not tested and/or checked the codes for any backdoors or w.e.. i did not made this code nor i recommend it to be used out of the box.. and i take no responsibilty on whatever it may cause. Use it only as your basis..

-uni

I use Python because it is one of the few languages I very much enjoy coding.
I have two IDEs which work very well and offer suggestions and improvements as you type if you hit certain keys!
It is also a language that is supported by the most operating systems (and is preinstalled on linux!)

Thanks for the link! That bot on its own works quite well, and I will modfy it to ensure it has only the code I want!
Are you planning on releasing your own modifications? I'd be interested in using a bot like that, plus I'm quite interested in Python myself.

The modifications would probably be useless to you as I am just removing code that I don't necessarily need.

Also, I think I may have breached the time request. Accidently set it to 0.001 seconds... oops!

Do you know any way of rectifying this situation.


Also: If you want a specific change done to the program I can easily do that for you. As it is under the GNU license I can modify all of the code to your personal preference if you would like?


EDIT: I thought that I would add, if you wanted, I can comment on all the code or show you each of the lines individually with an explanation of what it does and how it works, if you would like me to? I can also post anything I create for you on Github and others can learn from it.
legendary
Activity: 1792
Merit: 1283
January 01, 2016, 04:16:24 PM
#5
Hello,

I would like to use the Primedice API in order to get a python bot.

Does anyone have the code needed to produce the python gambling bot that they could place here in code tags?

Thank you in advance.

Coinhelper

Any reason why python? just wonderin... Anyway here is code from some using python to bot on pd.. https://github.com/nico202/primeDiceBot

NOTE: i have not tested and/or checked the codes for any backdoors or w.e.. i did not made this code nor i recommend it to be used out of the box.. and i take no responsibilty on whatever it may cause. Use it only as your basis..

-uni

I use Python because it is one of the few languages I very much enjoy coding.
I have two IDEs which work very well and offer suggestions and improvements as you type if you hit certain keys!
It is also a language that is supported by the most operating systems (and is preinstalled on linux!)

Thanks for the link! That bot on its own works quite well, and I will modfy it to ensure it has only the code I want!
Are you planning on releasing your own modifications? I'd be interested in using a bot like that, plus I'm quite interested in Python myself.
member
Activity: 63
Merit: 10
January 01, 2016, 03:38:18 PM
#4
Hello,

I would like to use the Primedice API in order to get a python bot.

Does anyone have the code needed to produce the python gambling bot that they could place here in code tags?

Thank you in advance.

Coinhelper

Any reason why python? just wonderin... Anyway here is code from some using python to bot on pd.. https://github.com/nico202/primeDiceBot

NOTE: i have not tested and/or checked the codes for any backdoors or w.e.. i did not made this code nor i recommend it to be used out of the box.. and i take no responsibilty on whatever it may cause. Use it only as your basis..

-uni

I use Python because it is one of the few languages I very much enjoy coding.
I have two IDEs which work very well and offer suggestions and improvements as you type if you hit certain keys!
It is also a language that is supported by the most operating systems (and is preinstalled on linux!)

Thanks for the link! That bot on its own works quite well, and I will modfy it to ensure it has only the code I want!
legendary
Activity: 1862
Merit: 1004
January 01, 2016, 03:09:06 PM
#3
Well this is not exactly Python, but maybe this code will help you a little, or you change your mind about programming this bot in Python.
Check out this thread about other PrimeDice bot: https://bitcointalksearch.org/topic/primedice-better-bot-fastest-lightest-advanced-java-based-bot-1018417
sr. member
Activity: 353
Merit: 254
unibtc - Bitsler.com Developer
January 01, 2016, 02:42:06 PM
#2
Hello,

I would like to use the Primedice API in order to get a python bot.

Does anyone have the code needed to produce the python gambling bot that they could place here in code tags?

Thank you in advance.

Coinhelper

Any reason why python? just wonderin... Anyway here is code from some using python to bot on pd.. https://github.com/nico202/primeDiceBot

NOTE: i have not tested and/or checked the codes for any backdoors or w.e.. i did not made this code nor i recommend it to be used out of the box.. and i take no responsibilty on whatever it may cause. Use it only as your basis..

-uni
member
Activity: 63
Merit: 10
January 01, 2016, 01:04:05 PM
#1
Hello,

I would like to use the Primedice API in order to get a python bot.

Does anyone have the code needed to produce the python gambling bot that they could place here in code tags?

Thank you in advance.

Coinhelper
Jump to: