Guest User

x = 'envFlush({"user":"100002298034552","locale":"pl_PL","

a guest
Apr 26th, 2012
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import re
  2.  
  3. x = 'envFlush({"user":"100002298034552","locale":"pl_PL","method":"GET","svn_rev":534081,"vip":"69.171.228.12","static_base":"http:\/\/static.ak.fbcdn.net\/","www_base":"http:\/\/www.facebook.com\/","rep_lag":2,"fb_dtsg":"AQBq8upG","ajaxpipe_token":"AXixBiqWh9DLwJtX","lhsh":"lAQEChYZs","tracking_domain":"http:\/\/pixel.facebook.com","retry_ajax_on_network_error":"1","html5_audio":"1","fbid_emoticons":"1"});</script><script>envFlush({"eagleEyeConfig":{"seed":"19vP"}});CavalryLogger=false;window._script_path = "\/profile_page_timeline.php:events";</script><noscript> <meta http-equiv="refresh" content="0; URL=/klubmuzycznyfabrika/?sk=events&amp;_fb_noscript=1" /> </noscript>'
  4.  
  5. reg = re.compile('envFlush\((?P<json>.*)\)')
  6. fb = reg.search(x)
  7. print fb.groupdict()['json']
  8.  
  9. ---
  10.  
  11. {"user":"100002298034552","locale":"pl_PL","method":"GET","svn_rev":534081,"vip":"69.171.228.12","static_base":"http:\/\/static.ak.fbcdn.net\/","www_base":"http:\/\/www.facebook.com\/","rep_lag":2,"fb_dtsg":"AQBq8upG","ajaxpipe_token":"AXixBiqWh9DLwJtX","lhsh":"lAQEChYZs","tracking_domain":"http:\/\/pixel.facebook.com","retry_ajax_on_network_error":"1","html5_audio":"1","fbid_emoticons":"1"});</script><script>envFlush({"eagleEyeConfig":{"seed":"19vP"}}
Add Comment
Please, Sign In to add comment