Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url = 'https://oauth.vk.com/blank.html#access_token=f9cc1f917c3ba191cd4279be2749'
- '4b6b5fba00e12ed71a6c790daf70ff9712cb8d195a875c7dea143f146&expires_in=86400&'
- 'user_id=91585260'
- params = url.split('#')[1].split('&')
- token = {}
- for i in params:
- x = i.split('=')
- token.update({x[0]: x[1]})
- print(token)
- {
- 'access_token': 'f9cc1f917c3ba191cd4279be27494b6b5fba00e12ed71a6c790daf70ff9712cb8d195a875c7dea143f146',
- 'expires_in': '86400',
- 'user_id': '91585260'
- }
Add Comment
Please, Sign In to add comment