Created
July 14, 2016 08:46
-
-
Save anonymous/b3d03e27985562694a1edec967fab164 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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