Skip to content

Instantly share code, notes, and snippets.

Created July 14, 2016 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b3d03e27985562694a1edec967fab164 to your computer and use it in GitHub Desktop.
Save anonymous/b3d03e27985562694a1edec967fab164 to your computer and use it in GitHub Desktop.
fixtures = pinnacle.hole_fixtures "https://api.pinnacle.com/v1/fixtures?sportid=29&islive=0", pinnacle.header
# Fixtures in Hash konvertieren
fixtures.each do |f|
pinnacle.fixtures[f.event_id] = f
end
durchlauf = 1
puts durchlauf
while true
####### Testcode
#Konvertiere zu HTML
html = Htmlify.new(pinnacle.fixtures)
html.write("fixtures.html")
# Hole und pflege geänderte Fixtures ein
geaenderte = pinnacle.hole_fixtures "https://api.pinnacle.com/v1/fixtures?sportid=29&islive=0&since=#{pinnacle.fixtures_geholt}", pinnacle.header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment