replace webbrowser and local web server by simple copy and paste and parse url for oauth code