Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

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

By: a guest on Apr 26th, 2012  |  syntax: Python  |  size: 1.23 KB  |  views: 135  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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"}}
clone this paste RAW Paste Data