[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle! by robrigo

View this thread on steempeak.com
· @robrigo · (edited)
$76.32
[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!
To all of the entrants of [the raffle](https://steemit.com/bitshares/@robrigo/giveaway-bitshares-polo-and-t-shirt-up-for-grabs-to-celebrate-smashing-bugs) one week ago- thank you for your entry! It's now time to announce the winners. 

<h2>Congratulations to @mrehqe on winning the Polo and @robertdurst10 on winning the T-shirt!!! Please send me a message with your shipping details on steemit.chat or telegram, I'm robrigo in those chats as well.</h2>

Here's the proof:

![bitshares-raffle.gif](https://steemitimages.com/DQmPkYWFhFvEG1G3KLMhxB6iQSAZT2iey4VXrY9BDyqNFbh/bitshares-raffle.gif)

I used the following code snippet below to pick winners at random from the comment replies. Feel free to adapt it for your own contests!

```
import re
import random

from steem import Steem

polo_regexp = re.compile(r'polo', flags=re.IGNORECASE)
tshirt_regexp = re.compile(r'tshirt|t\-shirt|shirt',flags=re.IGNORECASE)

BLACKLIST = ['matt-a']

s = Steem()

raffle_replies = s.get_content_replies('robrigo', 'giveaway-bitshares-polo-and-t-shirt-up-for-grabs-to-celebrate-smashing-bugs')

random.shuffle(raffle_replies)

entrants = {
	'polo': [],
	'tshirt': []
}

for reply in raffle_replies:
	if (reply['author'] in BLACKLIST 
	or reply['author'] in entrants['polo'] 
	or reply['author'] in entrants['tshirt']):
		continue
	elif polo_regexp.search(reply['body']):
		entrants['polo'].append(reply['author'])
	elif tshirt_regexp.search(reply['body']):
		entrants['tshirt'].append(reply['author'])

print("""
    Congratulations %s! You win the polo.
    Congratulations %s! You win the tshirt.
""" % (random.choice(entrants['polo']), random.choice(entrants['tshirt'])))
```
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id7,486,260
authorrobrigo
permlinkgiveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle
categorybitshares
json_metadata"{"format": "markdown", "links": ["https://steemit.com/bitshares/@robrigo/giveaway-bitshares-polo-and-t-shirt-up-for-grabs-to-celebrate-smashing-bugs"], "app": "steemit/0.1", "tags": ["bitshares", "giveaway", "raffle", "prize", "announcement"], "users": ["mrehqe", "robertdurst10"], "image": ["https://steemitimages.com/DQmPkYWFhFvEG1G3KLMhxB6iQSAZT2iey4VXrY9BDyqNFbh/bitshares-raffle.gif"]}"
created2017-07-17 22:49:39
last_update2017-07-17 22:50:33
depth0
children17
net_rshares14,801,411,697,444
last_payout2017-07-24 22:49:39
cashout_time1969-12-31 23:59:59
total_payout_value61.034 SBD
curator_payout_value15.281 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,666
author_reputation36,030,199,486,678
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (57)
@trendo ·
$1.49
Congrats to the winners ! Hope to see more giveaways like this :)
👍  , , ,
properties (23)
post_id7,486,338
authortrendo
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170717t225106133z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-17 22:51:09
last_update2017-07-17 22:51:09
depth1
children0
net_rshares288,356,223,539
last_payout2017-07-24 22:51:09
cashout_time1969-12-31 23:59:59
total_payout_value1.445 SBD
curator_payout_value0.040 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length65
author_reputation5,798,735,951,008
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (4)
@yaan · (edited)
Congratulations guys! Wear them with pride! :d
properties (22)
post_id7,487,063
authoryaan
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170717t230300628z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-17 23:03:00
last_update2017-07-17 23:03:54
depth1
children0
net_rshares0
last_payout2017-07-24 23:03:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length46
author_reputation6,358,187,535,472
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@drpuffnstuff ·
$1.42
missed the raffle, next time mayhaps. thanks for doing all you do for Steemit yo!  and thats cool of you for even posting the video of the raffle happening. Congrats winners
👍  ,
properties (23)
post_id7,487,158
authordrpuffnstuff
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170717t230157910z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-17 23:04:30
last_update2017-07-17 23:04:30
depth1
children0
net_rshares274,903,552,000
last_payout2017-07-24 23:04:30
cashout_time1969-12-31 23:59:59
total_payout_value1.063 SBD
curator_payout_value0.352 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length173
author_reputation9,822,504,178,255
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@mohammedfelahi ·
Well done, wish more in future.
properties (22)
post_id7,487,308
authormohammedfelahi
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170717t230646419z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-17 23:06:45
last_update2017-07-17 23:06:45
depth1
children0
net_rshares0
last_payout2017-07-24 23:06:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length31
author_reputation4,559,202,571,190
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tumutanzi ·
Geek.
properties (22)
post_id7,487,601
authortumutanzi
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170717t231138798z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-17 23:11:39
last_update2017-07-17 23:11:39
depth1
children0
net_rshares0
last_payout2017-07-24 23:11:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length5
author_reputation136,982,997,921,497
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@robertdurst10 ·
$2.34
<center>https://media4.giphy.com/media/Vc5x1pG5RFH3O/giphy.gif</center>

WOW, SO EXCITED!!!! Going to a couple Hackathons in two weeks, including the *Silicon Valley Fintech Week Hackathon*. Most definitely going to wear this shirt and spread the DPOS love! Thanks @robrigo for the putting on the raffle and @matt-a for the shoutout! Just sent you a message on steemit.chat @robrigo and resteemed this post. Cheers and Steem on!
👍  ,
properties (23)
post_id7,487,774
authorrobertdurst10
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170717t231409595z
categorybitshares
json_metadata"{"app": "steemit/0.1", "users": ["robrigo", "matt-a"], "image": ["https://media4.giphy.com/media/Vc5x1pG5RFH3O/giphy.gif"], "tags": ["bitshares"]}"
created2017-07-17 23:14:06
last_update2017-07-17 23:14:06
depth1
children1
net_rshares453,742,769,757
last_payout2017-07-24 23:14:06
cashout_time1969-12-31 23:59:59
total_payout_value1.754 SBD
curator_payout_value0.582 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length428
author_reputation5,397,867,529,588
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@robrigo ·
$1.09
Sounds like it's going to a good home. :)
👍  ,
properties (23)
post_id7,495,173
authorrobrigo
permlinkre-robertdurst10-re-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t011720233z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-18 01:17:21
last_update2017-07-18 01:17:21
depth2
children0
net_rshares212,583,748,327
last_payout2017-07-25 01:17:21
cashout_time1969-12-31 23:59:59
total_payout_value0.927 SBD
curator_payout_value0.163 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length41
author_reputation36,030,199,486,678
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@elisaul ·
Very good your post, I hope you visit mine and you like it
properties (22)
post_id7,490,030
authorelisaul
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170717t234909818z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-17 23:49:12
last_update2017-07-17 23:49:12
depth1
children0
net_rshares0
last_payout2017-07-24 23:49:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length58
author_reputation2,981,566,117,435
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@hicmaster ·
Congratulations
properties (22)
post_id7,491,204
authorhicmaster
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t000802972z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-18 00:08:06
last_update2017-07-18 00:08:06
depth1
children0
net_rshares0
last_payout2017-07-25 00:08:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length15
author_reputation1,110,594,595,056
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@rtdcs ·
$1.29
Great post!
👍  
properties (23)
post_id7,498,561
authorrtdcs
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t022205431z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-18 02:22:06
last_update2017-07-18 02:22:06
depth1
children0
net_rshares252,112,094,403
last_payout2017-07-25 02:22:06
cashout_time1969-12-31 23:59:59
total_payout_value1.172 SBD
curator_payout_value0.122 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length11
author_reputation19,448,624,389,373
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@theguruasia ·
$1.05
@robrigo,
That would be a great work! Next time I will participate and will try to win!
And I could see the source code. Is this C or C++?

After all, I would like to Congratz all the winners! 

Cheers~
👍  
properties (23)
post_id7,503,429
authortheguruasia
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t034722316z
categorybitshares
json_metadata"{"app": "steemit/0.1", "users": ["robrigo"], "tags": ["bitshares"]}"
created2017-07-18 03:47:21
last_update2017-07-18 03:47:21
depth1
children2
net_rshares204,334,468,624
last_payout2017-07-25 03:47:21
cashout_time1969-12-31 23:59:59
total_payout_value0.787 SBD
curator_payout_value0.261 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length202
author_reputation59,186,440,518,630
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@robrigo ·
Hi, glad you liked it! This is Python code. :)
👍  
properties (23)
post_id7,538,279
authorrobrigo
permlinkre-theguruasia-re-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t140318433z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-18 14:03:18
last_update2017-07-18 14:03:18
depth2
children1
net_rshares1,406,774,494
last_payout2017-07-25 14:03:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length46
author_reputation36,030,199,486,678
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@theguruasia · (edited)
@robrigo,
I don't have experience with Python! I did C and C++ long time ago! Thanks for sharing!
properties (22)
post_id7,553,151
authortheguruasia
permlinkre-robrigo-re-theguruasia-re-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t170802711z
categorybitshares
json_metadata"{"app": "steemit/0.1", "users": ["robrigo"], "tags": ["bitshares"]}"
created2017-07-18 17:08:03
last_update2017-07-18 17:08:21
depth3
children0
net_rshares0
last_payout2017-07-25 17:08:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length97
author_reputation59,186,440,518,630
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@justyy ·
Geek!
properties (22)
post_id7,515,174
authorjustyy
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t072948953z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-18 07:29:48
last_update2017-07-18 07:29:48
depth1
children0
net_rshares0
last_payout2017-07-25 07:29:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length5
author_reputation2,057,469,156,047,835
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@arckrai ·
Congratulations @mrehqe @robertdurst10 
I wish I could win the superb merchandise but I wasn't too lucky today.
Thank you for hosting this great contest @robrigo
Will there be more?
properties (22)
post_id7,521,772
authorarckrai
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t093716013z
categorybitshares
json_metadata"{"app": "steemit/0.1", "users": ["mrehqe", "robertdurst10", "robrigo"], "tags": ["bitshares"]}"
created2017-07-18 09:37:18
last_update2017-07-18 09:37:18
depth1
children0
net_rshares0
last_payout2017-07-25 09:37:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length181
author_reputation16,595,869,074,375
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@blazing ·
Drumrolls and Congratulations to both.
properties (22)
post_id7,529,283
authorblazing
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170718t114118032z
categorybitshares
json_metadata"{"app": "steemit/0.1", "tags": ["bitshares"]}"
created2017-07-18 11:41:21
last_update2017-07-18 11:41:21
depth1
children0
net_rshares0
last_payout2017-07-25 11:41:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length38
author_reputation103,117,727,459,305
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@fahrullah ·
Thanks for sharing. Good post 
http://i.imgur.com/H5tPKJd.png
@fahrullah
properties (22)
post_id7,964,775
authorfahrullah
permlinkre-robrigo-giveaway-results-announcing-the-lucky-winners-of-the-bitshares-shirt-raffle-20170722t230928373z
categorybitshares
json_metadata"{"app": "steemit/0.1", "users": ["fahrullah"], "image": ["http://i.imgur.com/H5tPKJd.png"], "tags": ["bitshares"]}"
created2017-07-22 23:09:42
last_update2017-07-22 23:09:42
depth1
children0
net_rshares0
last_payout2017-07-29 23:09:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length72
author_reputation249,906,629,830
root_title"[GIVEAWAY RESULTS] Announcing the lucky winners of the Bitshares shirt raffle!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000