{"action":"created","issue":{"url":"https://api.github.com/repos/icoz/habraparse/issues/4","labels_url":"https://api.github.com/repos/icoz/habraparse/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/icoz/habraparse/issues/4/comments","events_url":"https://api.github.com/repos/icoz/habraparse/issues/4/events","html_url":"https://github.com/icoz/habraparse/issues/4","id":70159208,"number":4,"title":"Падение скрипта","user":{"login":"xvitaly","id":966711,"avatar_url":"https://avatars.githubusercontent.com/u/966711?v=3","gravatar_id":"","url":"https://api.github.com/users/xvitaly","html_url":"https://github.com/xvitaly","followers_url":"https://api.github.com/users/xvitaly/followers","following_url":"https://api.github.com/users/xvitaly/following{/other_user}","gists_url":"https://api.github.com/users/xvitaly/gists{/gist_id}","starred_url":"https://api.github.com/users/xvitaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xvitaly/subscriptions","organizations_url":"https://api.github.com/users/xvitaly/orgs","repos_url":"https://api.github.com/users/xvitaly/repos","events_url":"https://api.github.com/users/xvitaly/events{/privacy}","received_events_url":"https://api.github.com/users/xvitaly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-22T15:25:50Z","updated_at":"2015-04-23T22:11:51Z","closed_at":null,"body":"Падает при запуске:\r\n```\r\n[user4@localhost habraparse]$ python3 habraparse.py save_favs -c USERNAME /tmp/habr/\r\nTraceback (most recent call last):\r\n  File \"habraparse.py\", line 252, in <module>\r\n    main()\r\n  File \"habraparse.py\", line 223, in main\r\n    limit=args['--limit'], project=project)\r\n  File \"habraparse.py\", line 122, in save_all_favs_for_user\r\n    hu = HabraUser(username)\r\n  File \"/home/vitaly/git/habraparse/habr/user.py\", line 229, in __init__\r\n    super().__init__(username, need_favorites, need_user_posts=need_user_posts, domain='habrahabr.ru')\r\n  File \"/home/vitaly/git/habraparse/habr/user.py\", line 35, in __init__\r\n    self._parseUserpage()\r\n  File \"/home/vitaly/git/habraparse/habr/user.py\", line 154, in _parseUserpage\r\n    self._user_profile['registration_date'] = date_of_registration[:date_of_registration.index('\\n')].strip()\r\nValueError: substring not found\r\n```\r\nUSERNAME - логин любого пользователя HH.\r\n\r\nВерсия Python3:\r\n```\r\n[user4@localhost habraparse]$ python3 --version\r\nPython 3.4.1\r\n```"},"comment":{"url":"https://api.github.com/repos/icoz/habraparse/issues/comments/95732832","html_url":"https://github.com/icoz/habraparse/issues/4#issuecomment-95732832","issue_url":"https://api.github.com/repos/icoz/habraparse/issues/4","id":95732832,"user":{"login":"xvitaly","id":966711,"avatar_url":"https://avatars.githubusercontent.com/u/966711?v=3","gravatar_id":"","url":"https://api.github.com/users/xvitaly","html_url":"https://github.com/xvitaly","followers_url":"https://api.github.com/users/xvitaly/followers","following_url":"https://api.github.com/users/xvitaly/following{/other_user}","gists_url":"https://api.github.com/users/xvitaly/gists{/gist_id}","starred_url":"https://api.github.com/users/xvitaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xvitaly/subscriptions","organizations_url":"https://api.github.com/users/xvitaly/orgs","repos_url":"https://api.github.com/users/xvitaly/repos","events_url":"https://api.github.com/users/xvitaly/events{/privacy}","received_events_url":"https://api.github.com/users/xvitaly/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T22:11:51Z","updated_at":"2015-04-23T22:11:51Z","body":"У меня GNU/Linux. Дистрибутив Fedora."}}