Guest User

Untitled

a guest
Oct 22nd, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. url = 'https://oauth.vk.com/blank.html#access_token=f9cc1f917c3ba191cd4279be2749'
  2. '4b6b5fba00e12ed71a6c790daf70ff9712cb8d195a875c7dea143f146&expires_in=86400&'
  3. 'user_id=91585260'
  4. params = url.split('#')[1].split('&')
  5.  
  6. token = {}
  7. for i in params:
  8. x = i.split('=')
  9. token.update({x[0]: x[1]})
  10.  
  11. print(token)
  12.  
  13. {
  14. 'access_token': 'f9cc1f917c3ba191cd4279be27494b6b5fba00e12ed71a6c790daf70ff9712cb8d195a875c7dea143f146',
  15. 'expires_in': '86400',
  16. 'user_id': '91585260'
  17. }
Add Comment
Please, Sign In to add comment