A
A
AleksRT2014-03-16 12:01:01
Python
AleksRT, 2014-03-16 12:01:01

How to get data from address bar in python?

There is a code:

url = 'http://api.vkontakte.ru/oauth/authorize?client_id={id}&scope=friends&redirect_uri=' \
      'http://api.vk.com/blank.html&display=page&response_type=token'
webbrowser.open_new_tab(url)

When the program starts, a browser opens with a request to allow the application to access information about friends (or a login form), when we allow it, we will receive a link in the browser that looks like:
http://api.vk.com/blank.html#access_token={token}&expires_in={exp}&user_id={id}

Well, how to pass {token}, {exp}, {id} to the program?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question