diff --git a/chatexchange/browser.py b/chatexchange/browser.py index 45efda9..97662dd 100644 --- a/chatexchange/browser.py +++ b/chatexchange/browser.py @@ -223,7 +223,7 @@ def _load_user(self, soup): @staticmethod def user_id_and_name_from_link(link_soup): user_name = link_soup.text - user_id = int(link_soup['href'].split('/')[2]) + user_id = int(link_soup['href'].split('/')[-2]) return user_id, user_name def _update_chat_fkey_and_user(self):