for the betters out here, the post your picks thread

se1f_made

All Star
Joined
Jun 1, 2012
Messages
2,108
Reputation
160
Daps
4,577
Reppin
NULL
Today aint Saturday? Y'all nikkas not takin any bets today?:dame:

Order of confidence listed from highest to least:

Football - NCAA
[387] Florida State 09/24/2016 (11:00 AM)
-4½ Points -110 for the Game

[361] Wisconsin - Michigan State 09/24/2016 (11:00 AM)
Over 42 Points -110 for the Game


Football - NCAA
[336] West Virginia 09/24/2016 (02:30 PM)
-7 Points -110 for the Game


Football - NCAA
[346] North Carolina 09/24/2016 (02:30 PM)
-7 Points -110 for the Game

[350] Baylor - Oklahoma State 09/24/2016 (06:30 PM)
Under 73 Points -110 for the Game

[364] Texas A&M 09/24/2016 (08:00 PM)
-6 Points -115 for the Game

[320] Virginia Tech - East Carolina 09/24/2016 (11:30 AM)
Under 57½ Points -110 for the Game

[319] East Carolina 09/24/2016 (11:30 AM)
+15 Points -110 for the Game


Football - NCAA
[346] North Carolina - Pittsburgh U 09/24/2016 (02:30 PM)
Under 66 Points -110 for the Game


[361] Wisconsin - Michigan State 09/24/2016 (11:00 AM)
Over 42 Points -110 for the Game

[383] Florida 09/24/2016 (02:30 PM)
+4½ Points -110 for the Game

[402] Arizona State - California 09/24/2016 (09:00 PM)
Under 82 Points -110 for the Game
 

se1f_made

All Star
Joined
Jun 1, 2012
Messages
2,108
Reputation
160
Daps
4,577
Reppin
NULL
These are the only ones I'm fukking wit for now, we'll see how the early games go...

Football - NCAA
[336] West Virginia 09/24/2016 (02:30 PM)
-7 Points -110 for the Game

Football - NCAA
[362] Michigan State 09/24/2016 (11:00 AM)
-3½ Points -105 for the Game

Selection 3:
Football - NCAA
[383] Florida 09/24/2016 (02:30 PM)
+4½ Points -110 for the Game


Football - NCAA
[387] Florida State 09/24/2016 (11:00 AM)
-4½ Points -110 for the Game
 

ahomeplateslugger

Superstar
Joined
May 1, 2012
Messages
7,988
Reputation
861
Daps
16,632
ended up doing a teaser for today. i dont rock with college football much so i'm working my way slowly.


Football - College - Point Spread

Florida State @ South Florida

Florida State Pick (-298) Sep 24, 2016 9:00 AM

Teased 7.0 points


Football - College - Point Spread

Georgia @ Mississippi

Mississippi -0.5 (-298) Sep 24, 2016 9:00 AM

Teased 7.0 points


Football - College - Point Spread

Florida @ Tennessee

Florida 12.0 (-298) Sep 24, 2016 12:30 PM

Teased 7.0 points


Football - College - Point Spread

Penn State @ Michigan

Michigan -11.5 (-298) Sep 24, 2016 12:30 PM

Teased 7.0 points


Football - College - Point Spread

Oklahoma State @ Baylor

Baylor -1.0 (-298) Sep 24, 2016 4:30 PM

Teased 7.0 points
 

ahomeplateslugger

Superstar
Joined
May 1, 2012
Messages
7,988
Reputation
861
Daps
16,632
these nfl lines are weird to me. the favorites should be getting more points imo which makes me wonder if it's a trap game.

so far i like

steelers -4
raiders -1
bucs -6
cards - 4.5
giants -3.5

i think the cards and giants are better than the 4.5 and 3.5 they're giving up so i might just stay away from those:patrice:
 

Bernie Madoff

Banned
Joined
Jun 23, 2012
Messages
11,925
Reputation
-2,429
Daps
18,686
Reppin
Otisville, Federal Correctional Institution
rGVY4Ar.png
 

KritNC

All Star
Joined
Jun 5, 2012
Messages
3,440
Reputation
610
Daps
4,085
Reppin
Costa Rica
So I posted this in the programming thread but I figured it would be relevant here as well

So I have always been really into sports betting and have followed this guys model for a while.

I decided to write a program that would grab his data, grab the vegas line, compare the two and point out the largest discrepancies between the two.

I originally had it as just a command line tool where you would enter a url and it would output your info but I decided to build it out into a full web app.

Here is the command line version
1vfQDsW.png



Here is the webapp version
JwetvPV.png


I am about to upload it to heroku

Here is the main code that parses the ratings and returns the results

class Games::Import < Less::Interaction
expects :url
expects :sport
# Massey Ratings
# Games::Import.run(url: 'Massey Ratings', sport: 'ncaa_football' )

def run
html = get_massey_html
fetch_and_save_team_data(html)
end

private

def save_game(game_hash)
unless Game.where(home_team_name: game_hash[:home_team_name], away_team_name: game_hash["away_team_name"]).present?
Game.create!(game_hash)
end
end

def get_massey_html
browser = Watir::Browser.new :phantomjs
browser.goto url
browser.button(id: 'showVegas').click
doc = Nokogiri::HTML(browser.html)
browser.close
doc.css('.bodyrow')
end

def fetch_and_save_team_data(html)
html.each do |row|
unless invalid_data(row)
game_hash = set_game_hash(row)

save_game(game_hash)
end
end
end

def invalid_data(row)
if row.css('.fscore')[1].children.first.text == "---"
true
elsif row.css('.fscore')[1].children.last.text == "---"
true
elsif row.css('.fscore').last.children.first.text == "---"
true
else
false
end
end

def set_game_hash(row)
{
home_team_massey_line: get_home_team_massey_line(row),
away_team_massey_line: -get_home_team_massey_line(row),
away_team_name: row.css('.fteam').first.css('a').first.children.text,
home_team_name: row.css('.fteam').first.css('a').last.children.text,
home_team_vegas_line: get_home_team_vegas_line(row),
away_team_vegas_line: -get_home_team_vegas_line(row),
vegas_over_under: row.css('.fscore').last.children.first.text.to_f,
massey_over_under: row.css('.fscore').last.children.last.text.to_f,
date: format_date(row),
sport: sport,
line_diff: (get_home_team_massey_line(row) - get_home_team_vegas_line(row)).abs,
over_under_diff: (row.css('.fscore').last.children.first.text.to_f - row.css('.fscore').last.children.last.text.to_f).abs,
team_to_bet: find_team_to_bet(row),
over_under_pick: pick_over_under(row)
}
end

def pick_over_under(row)
if row.css('.fscore').last.children.last.text.to_f - row.css('.fscore').last.children.first.text.to_f > 0
"Over"
else
"Under"
end
end

def find_team_to_bet(row)
if get_home_team_massey_line(row) - get_home_team_vegas_line(row) > 0
row.css('.fteam').first.css('a').first.children.text
else
row.css('.fteam').first.css('a').last.children.text
end
end

def format_date(row)
Date.parse(row.css('.fdate').first.children.first.children.first.text)
end

def get_home_team_massey_line(row)
game_array = row.css('.fscore')[1].children.to_a
return -1 * game_array.first.text.to_f if game_array.first.attributes["class"].value == 'ltgreen'
return game_array.last.text.to_f if game_array.last.attributes["class"].value == ' ltgreen'
end

def get_home_team_vegas_line(row)
game_array = row.css('.fscore')[1].children.to_a
return -1 * game_array.first.text.to_f if game_array.first.attributes["class"].value == 'ltred'
return game_array.last.text.to_f if game_array.last.attributes["class"].value == 'ltred'
end

def game_params(game_data)
{
sport: sport,
home_team_name: game_data[:home_team_ame],
away_team_name: game_data[:away_team_name],
home_team_massey_line: game_data[:homw_team_massey_line],
away_team_massey_line: game_data[:away_team_massey_line],
home_team_vegas_line: game_data[:home_team_vegas_line],
away_team_vegas_line: game_data[:away_team_vegas_line],
vegas_over_under: game_data[:vegas_over_under],
massey_over_under: game_data[:massey_over_under],
line_diff: (game_data[:home_team_massey_line] - game_data[:home_team_vegas_line]).abs,
date: game_data[:date]
}
end
end


As the season goes on I am going to track the results and see how it performs.

It is always good to combine coding with something you are interested in. It's good practice and you get to learn new shyt.






I am going to try to get the webapp running on a server so everyone can use it as another tool to help pick games.

Based on this weeks projections I made these bets

Late Game Parlay
LH53p4l.png


Early Game Parlay - Alrady blew this one with ECU
XVfjkVK.png



My lock of the day

3sXuiBI.png
 

se1f_made

All Star
Joined
Jun 1, 2012
Messages
2,108
Reputation
160
Daps
4,577
Reppin
NULL
So I posted this in the programming thread but I figured it would be relevant here as well

So I have always been really into sports betting and have followed this guys model for a while.

I decided to write a program that would grab his data, grab the vegas line, compare the two and point out the largest discrepancies between the two.

I originally had it as just a command line tool where you would enter a url and it would output your info but I decided to build it out into a full web app.

Here is the command line version
1vfQDsW.png



Here is the webapp version
JwetvPV.png


I am about to upload it to heroku

Here is the main code that parses the ratings and returns the results

class Games::Import < Less::Interaction
expects :url
expects :sport
# Massey Ratings
# Games::Import.run(url: 'Massey Ratings', sport: 'ncaa_football' )

def run
html = get_massey_html
fetch_and_save_team_data(html)
end

private

def save_game(game_hash)
unless Game.where(home_team_name: game_hash[:home_team_name], away_team_name: game_hash["away_team_name"]).present?
Game.create!(game_hash)
end
end

def get_massey_html
browser = Watir::Browser.new :phantomjs
browser.goto url
browser.button(id: 'showVegas').click
doc = Nokogiri::HTML(browser.html)
browser.close
doc.css('.bodyrow')
end

def fetch_and_save_team_data(html)
html.each do |row|
unless invalid_data(row)
game_hash = set_game_hash(row)

save_game(game_hash)
end
end
end

def invalid_data(row)
if row.css('.fscore')[1].children.first.text == "---"
true
elsif row.css('.fscore')[1].children.last.text == "---"
true
elsif row.css('.fscore').last.children.first.text == "---"
true
else
false
end
end

def set_game_hash(row)
{
home_team_massey_line: get_home_team_massey_line(row),
away_team_massey_line: -get_home_team_massey_line(row),
away_team_name: row.css('.fteam').first.css('a').first.children.text,
home_team_name: row.css('.fteam').first.css('a').last.children.text,
home_team_vegas_line: get_home_team_vegas_line(row),
away_team_vegas_line: -get_home_team_vegas_line(row),
vegas_over_under: row.css('.fscore').last.children.first.text.to_f,
massey_over_under: row.css('.fscore').last.children.last.text.to_f,
date: format_date(row),
sport: sport,
line_diff: (get_home_team_massey_line(row) - get_home_team_vegas_line(row)).abs,
over_under_diff: (row.css('.fscore').last.children.first.text.to_f - row.css('.fscore').last.children.last.text.to_f).abs,
team_to_bet: find_team_to_bet(row),
over_under_pick: pick_over_under(row)
}
end

def pick_over_under(row)
if row.css('.fscore').last.children.last.text.to_f - row.css('.fscore').last.children.first.text.to_f > 0
"Over"
else
"Under"
end
end

def find_team_to_bet(row)
if get_home_team_massey_line(row) - get_home_team_vegas_line(row) > 0
row.css('.fteam').first.css('a').first.children.text
else
row.css('.fteam').first.css('a').last.children.text
end
end

def format_date(row)
Date.parse(row.css('.fdate').first.children.first.children.first.text)
end

def get_home_team_massey_line(row)
game_array = row.css('.fscore')[1].children.to_a
return -1 * game_array.first.text.to_f if game_array.first.attributes["class"].value == 'ltgreen'
return game_array.last.text.to_f if game_array.last.attributes["class"].value == ' ltgreen'
end

def get_home_team_vegas_line(row)
game_array = row.css('.fscore')[1].children.to_a
return -1 * game_array.first.text.to_f if game_array.first.attributes["class"].value == 'ltred'
return game_array.last.text.to_f if game_array.last.attributes["class"].value == 'ltred'
end

def game_params(game_data)
{
sport: sport,
home_team_name: game_data[:home_team_ame],
away_team_name: game_data[:away_team_name],
home_team_massey_line: game_data[:homw_team_massey_line],
away_team_massey_line: game_data[:away_team_massey_line],
home_team_vegas_line: game_data[:home_team_vegas_line],
away_team_vegas_line: game_data[:away_team_vegas_line],
vegas_over_under: game_data[:vegas_over_under],
massey_over_under: game_data[:massey_over_under],
line_diff: (game_data[:home_team_massey_line] - game_data[:home_team_vegas_line]).abs,
date: game_data[:date]
}
end
end


As the season goes on I am going to track the results and see how it performs.

It is always good to combine coding with something you are interested in. It's good practice and you get to learn new shyt.






I am going to try to get the webapp running on a server so everyone can use it as another tool to help pick games.

Based on this weeks projections I made these bets

Late Game Parlay
LH53p4l.png


Early Game Parlay - Alrady blew this one with ECU
XVfjkVK.png



My lock of the day

3sXuiBI.png

Niice, how long did it take for you to compile this code and where did you learn how to write code? I'm currently working in the systems side of it but wanting to evolve into a devops engineer, any advice?
 

KritNC

All Star
Joined
Jun 5, 2012
Messages
3,440
Reputation
610
Daps
4,085
Reppin
Costa Rica
Niice, how long did it take for you to compile this code and where did you learn how to write code? I'm currently working in the systems side of it but wanting to evolve into a devops engineer, any advice?
Took me probably three hours to write it. I learned using online resources and got a job as a remote developer 4 months ago. Go fukk with freecodecamp.com or theodinproject.com it's basically all you need
 

YaBishh

All Star
Joined
Jan 4, 2013
Messages
3,499
Reputation
310
Daps
3,131
Reppin
Texas
lost my 3 team parlay cuz of 1 fukking point from COst vs Minne Game...That hurt mane
 

YaBishh

All Star
Joined
Jan 4, 2013
Messages
3,499
Reputation
310
Daps
3,131
Reppin
Texas
So I posted this in the programming thread but I figured it would be relevant here as well

So I have always been really into sports betting and have followed this guys model for a while.

I decided to write a program that would grab his data, grab the vegas line, compare the two and point out the largest discrepancies between the two.

I originally had it as just a command line tool where you would enter a url and it would output your info but I decided to build it out into a full web app.

Here is the command line version
1vfQDsW.png



Here is the webapp version
JwetvPV.png


I am about to upload it to heroku

Here is the main code that parses the ratings and returns the results

class Games::Import < Less::Interaction
expects :url
expects :sport
# Massey Ratings
# Games::Import.run(url: 'Massey Ratings', sport: 'ncaa_football' )

def run
html = get_massey_html
fetch_and_save_team_data(html)
end

private

def save_game(game_hash)
unless Game.where(home_team_name: game_hash[:home_team_name], away_team_name: game_hash["away_team_name"]).present?
Game.create!(game_hash)
end
end

def get_massey_html
browser = Watir::Browser.new :phantomjs
browser.goto url
browser.button(id: 'showVegas').click
doc = Nokogiri::HTML(browser.html)
browser.close
doc.css('.bodyrow')
end

def fetch_and_save_team_data(html)
html.each do |row|
unless invalid_data(row)
game_hash = set_game_hash(row)

save_game(game_hash)
end
end
end

def invalid_data(row)
if row.css('.fscore')[1].children.first.text == "---"
true
elsif row.css('.fscore')[1].children.last.text == "---"
true
elsif row.css('.fscore').last.children.first.text == "---"
true
else
false
end
end

def set_game_hash(row)
{
home_team_massey_line: get_home_team_massey_line(row),
away_team_massey_line: -get_home_team_massey_line(row),
away_team_name: row.css('.fteam').first.css('a').first.children.text,
home_team_name: row.css('.fteam').first.css('a').last.children.text,
home_team_vegas_line: get_home_team_vegas_line(row),
away_team_vegas_line: -get_home_team_vegas_line(row),
vegas_over_under: row.css('.fscore').last.children.first.text.to_f,
massey_over_under: row.css('.fscore').last.children.last.text.to_f,
date: format_date(row),
sport: sport,
line_diff: (get_home_team_massey_line(row) - get_home_team_vegas_line(row)).abs,
over_under_diff: (row.css('.fscore').last.children.first.text.to_f - row.css('.fscore').last.children.last.text.to_f).abs,
team_to_bet: find_team_to_bet(row),
over_under_pick: pick_over_under(row)
}
end

def pick_over_under(row)
if row.css('.fscore').last.children.last.text.to_f - row.css('.fscore').last.children.first.text.to_f > 0
"Over"
else
"Under"
end
end

def find_team_to_bet(row)
if get_home_team_massey_line(row) - get_home_team_vegas_line(row) > 0
row.css('.fteam').first.css('a').first.children.text
else
row.css('.fteam').first.css('a').last.children.text
end
end

def format_date(row)
Date.parse(row.css('.fdate').first.children.first.children.first.text)
end

def get_home_team_massey_line(row)
game_array = row.css('.fscore')[1].children.to_a
return -1 * game_array.first.text.to_f if game_array.first.attributes["class"].value == 'ltgreen'
return game_array.last.text.to_f if game_array.last.attributes["class"].value == ' ltgreen'
end

def get_home_team_vegas_line(row)
game_array = row.css('.fscore')[1].children.to_a
return -1 * game_array.first.text.to_f if game_array.first.attributes["class"].value == 'ltred'
return game_array.last.text.to_f if game_array.last.attributes["class"].value == 'ltred'
end

def game_params(game_data)
{
sport: sport,
home_team_name: game_data[:home_team_ame],
away_team_name: game_data[:away_team_name],
home_team_massey_line: game_data[:homw_team_massey_line],
away_team_massey_line: game_data[:away_team_massey_line],
home_team_vegas_line: game_data[:home_team_vegas_line],
away_team_vegas_line: game_data[:away_team_vegas_line],
vegas_over_under: game_data[:vegas_over_under],
massey_over_under: game_data[:massey_over_under],
line_diff: (game_data[:home_team_massey_line] - game_data[:home_team_vegas_line]).abs,
date: game_data[:date]
}
end
end


As the season goes on I am going to track the results and see how it performs.

It is always good to combine coding with something you are interested in. It's good practice and you get to learn new shyt.






I am going to try to get the webapp running on a server so everyone can use it as another tool to help pick games.

Based on this weeks projections I made these bets

Late Game Parlay
LH53p4l.png


Early Game Parlay - Alrady blew this one with ECU
XVfjkVK.png



My lock of the day

3sXuiBI.png
how we use that coding tho? forgot all my cs shyt
 
Top