Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 10th, 2012  |  syntax: None  |  size: 7.25 KB  |  hits: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. lars@X64V:~/mlbviewer2012/test$ python mlbgamedl.py 14-345598-2012-10-09
  2. These are the cookies we have received so far :
  3. 0   :   <Cookie SESSION_1=wf_flowId%3D%3D%3Dregistration.wizard%7Ewf_c_id%3D%3D%3Dmlb%7Estage%3D%3D%3D3%7EflowId%3D%3D%3Dregistration.wizard for .mlb.com/>
  4. Here are the headers of the page :
  5. Server: Oracle-iPlanet-Web-Server/7.0
  6. Date: Wed, 10 Oct 2012 10:17:22 GMT
  7. Content-type: text/html;charset=utf-8
  8. Set-cookie: SESSION_1=; Domain=.mlb.com; Path=/
  9. Set-cookie: mlbunifieddata=6092613%7C2af777db0e686c5a7331d6491720fa25%7C1349864242948%7Cttemp; Domain=.mlb.com; Path=/
  10. Set-cookie: appacc=mlb; Domain=.mlb.com; Expires=Thu, 10-Oct-2013 10:17:22 GMT; Path=/
  11. Set-cookie: fprt=amJVeC92aXdYR3NpQXFieXNWR3dBMVBQYVAwPXwxMzQ5ODY0MjQyOTQ0fGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D; Domain=.mlb.com; Expires=Thu, 10-Oct-2013 10:17:22 GMT; Path=/
  12. Set-cookie: ipid=6092613; Domain=.mlb.com; Expires=Thu, 10-Oct-2013 10:17:22 GMT; Path=/
  13. Transfer-encoding: chunked
  14.  
  15.  
  16. These are the cookies we have received so far :
  17. 0   :   <Cookie SESSION_1= for .mlb.com/>
  18. 1   :   <Cookie appacc=mlb for .mlb.com/>
  19. 2   :   <Cookie fprt=amJVeC92aXdYR3NpQXFieXNWR3dBMVBQYVAwPXwxMzQ5ODY0MjQyOTQ0fGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D for .mlb.com/>
  20. 3   :   <Cookie ipid=6092613 for .mlb.com/>
  21. 4   :   <Cookie mlbunifieddata=6092613%7C2af777db0e686c5a7331d6491720fa25%7C1349864242948%7Cttemp for .mlb.com/>
  22. Logged in successfully!
  23. [('SESSION_1', '', {'path': '/', 'domain': '.mlb.com', 'version': '0'}, {}), ('mlbunifieddata', '6092613%7C2af777db0e686c5a7331d6491720fa25%7C1349864242948%7Cttemp', {'path': '/', 'domain': '.mlb.com', 'version': '0'}, {}), ('appacc', 'mlb', {'path': '/', 'domain': '.mlb.com', 'expires': 1381400242, 'version': '0'}, {}), ('fprt', 'amJVeC92aXdYR3NpQXFieXNWR3dBMVBQYVAwPXwxMzQ5ODY0MjQyOTQ0fGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D', {'path': '/', 'domain': '.mlb.com', 'expires': 1381400242, 'version': '0'}, {}), ('ipid', '6092613', {'path': '/', 'domain': '.mlb.com', 'expires': 1381400242, 'version': '0'}, {})]
  24. {'ipid': '6092613', 'SESSION_1': '', 'appacc': 'mlb', 'fprt': 'amJVeC92aXdYR3NpQXFieXNWR3dBMVBQYVAwPXwxMzQ5ODY0MjQyOTQ0fGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D', 'mlbunifieddata': '6092613%7C2af777db0e686c5a7331d6491720fa25%7C1349864242948%7Cttemp'}
  25. ipid = 6092613 fingerprint = amJVeC92aXdYR3NpQXFieXNWR3dBMVBQYVAwPXwxMzQ5ODY0MjQyOTQ0fGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D
  26. [('SESSION_1', 'mEntNum%3D%3D%3D3%7EmCatCode%3D%3D%3Dmlb_media_mlb_lg%7EmBitRate%3D%3D%3D350%7EmType%3D%3D%3Dvideo%7EmUrl%3D%3D%3Dhttp%3A%2F%2Fwww.mlb.com%2Fshared%2Fmedia%2FmediaMetaFile.jsp%3Ff%3Dwindows%26o%3D1800%26d%3D3750%26arl%3Dmms%253A%252F%252Fa102.v10869f.c10869.g.vm.akamaistream.net%252F7%252F102%252F10869%252Fv0004%252Fmlb.download.akamai.com%252F10869%252F2006%252Fmlb_%2521%252Ftv%252Farchive08%252F082806_chnpit_tv_351.wmv%253Fauth%253Dcb.cGdPaCbPc7c6bDbMcZaLbAafdAbidQbv-bqDuSX-O-bwU-XheunL6y-lekbkjl6jlkdjgmckgm4kfldm4jjk4lflfkikbl9jk%2526aifp%253Dv0004%2526WMCache%253D0%2526ct5%253D10-Oct-12%2526ct6%253D96.6.124.38%2526ct7%253D0%253Anull%2526ct8%253D1%2526ct1%253Dmlb%2526ct3%253D6092613%2526ct4%253Dmlb%7EmEnt2%3D%3D%3DMLBVIDEO%7EmEnt1%3D%3D%3DMLBALL%7EmEncoding%3D%3D%3Dwindows%7EmEnt0%3D%3D%3DMLBVIDEOPOSTSEA', {'path': '/', 'domain': '.mlb.com', 'version': '0'}, {}), ('ftmu', 'JyqA6wKTk2NUoMXJxJ%2Bsu%2BEw%2FKM%3D', {'path': '/', 'domain': '.mlb.com', 'expires': 1350123444, 'version': '0'}, {})]
  27. ipid = 6092613 fingerprint = amJVeC92aXdYR3NpQXFieXNWR3dBMVBQYVAwPXwxMzQ5ODY0MjQyOTQ0fGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D
  28. session-key = JyqA6wKTk2NUoMXJxJ%2Bsu%2BEw%2FKM%3D
  29. no session-key found in reply
  30. Event-id = 14-345598-2012-10-09 and content-id = 25360683
  31. <?xml version="1.0" encoding="UTF-8"?><user-verified-media-response xmlns="http://services.bamnetworks.com/media/types/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><user-verified-event><event-id>14-345598-2012-10-09</event-id><user-verified-content><content-id>25360683</content-id><type>video</type><user-verified-media-item><media-item><type>video</type><state>MEDIA_DONE</state><cat-code>mlb_postseason</cat-code><login-required>true</login-required><auth-required>true</auth-required><blackout-keywords><blackout-keyword>MLB_NON_US_BLACKOUT</blackout-keyword></blackout-keywords><playback-scenario>FMS_CLOUD</playback-scenario><has-synched-data>false</has-synched-data><preview-url/><innings-index>http://mlb.mlb.com/mlb/mmls2012/345598.xml</innings-index><cdns/><sequence>1</sequence><duration xsi:nil="true"/></media-item><url/><auth-status><notAuthorizedStatus/></auth-status><blackout-status><blackedOutStatus><blackout>MLB_NON_US_BLACKOUT</blackout></blackedOutStatus></blackout-status></user-verified-media-item><domain-specific-attributes><domain-attribute name="inning_index_location_plist">http://mlb.mlb.com/mlb/mmls2012/345598.plist</domain-attribute><domain-attribute name="in_epg">mlb_multiangle_epg</domain-attribute><domain-attribute name="coverage_type">out-of-market</domain-attribute><domain-attribute name="source_aspect_ratio">HD</domain-attribute><domain-attribute name="coverage_association">0</domain-attribute><domain-attribute name="game_events_location_plist">http://gdx.mlb.com/components/game/mlb/year_2012/month_10/day_09/gid_2012_10_09_detmlb_oakmlb_1/game_events.plist</domain-attribute><domain-attribute name="subject">MULTIANGLE_COVERAGE</domain-attribute><domain-attribute name="inning_index_location_xml">http://mlb.mlb.com/mlb/mmls2012/345598.xml</domain-attribute><domain-attribute name="home_team_id">133</domain-attribute><domain-attribute name="combined_media_state">MEDIA_DONE</domain-attribute><domain-attribute name="subject">LIVE_EVENT_COVERAGE</domain-attribute><domain-attribute name="event_date">2012-10-09T21:00:00-0400</domain-attribute><domain-attribute name="away_team_id">116</domain-attribute><domain-attribute name="default_dam_view_key">MLB_POSTSEASON_MULTIANGLE_TBS</domain-attribute><domain-attribute name="run_scoring_plays_location_plist">http://gdx.mlb.com/components/game/mlb/year_2012/month_10/day_09/gid_2012_10_09_detmlb_oakmlb_1/runScoringPlays.plist</domain-attribute><domain-attribute name="calendar_event_id">14-345598-2012-10-09</domain-attribute><domain-attribute name="milestones_xml">http://mlb.mlb.com/mlb/mmls2012/14-345598-2012-10-09.xml</domain-attribute><domain-attribute name="milestones_plist">http://mlb.mlb.com/mlb/mmls2012/14-345598-2012-10-09.plist</domain-attribute><domain-attribute name="game_pk">345598</domain-attribute><domain-attribute name="game_id">2012/10/09/detmlb-oakmlb-1</domain-attribute></domain-specific-attributes><view-keys><view-key><key>MLB_POSTSEASON_MULTIANGLE_TBS</key></view-key></view-keys><features/></user-verified-content><domain-specific-attributes/></user-verified-event><entitlements><entitlement>MLBALL</entitlement></entitlements><determined-location><postal-code>20001</postal-code><country-code>de</country-code></determined-location><session-key>JyqA6wKTk2NUoMXJxJ+su+Ew/KM=</session-key><status-code>1</status-code></user-verified-media-response>
  32. DEBUG: FMS_CLOUD URL:
  33.  
  34. None
  35.  
  36.  
  37.  
  38. Traceback (most recent call last):
  39.   File "mlbgamedl.py", line 344, in <module>
  40.     auth_chunk = re.search(auth_pat,game_url).groups()[0]
  41.   File "/usr/lib/python2.7/re.py", line 142, in search
  42.     return _compile(pattern, flags).search(string)
  43. TypeError: expected string or buffer
  44. lars@X64V:~/mlbviewer2012/test$