droyed / stackoverflow_tag_cloud

Generates tag clouds for Stack Overflow user profiles based on their Q&A activity. The intended application is to present a pictorial description of that activity.
MIT License
26 stars 10 forks source link

IndexError: list index out of range #6

Open ishandutta2007 opened 11 months ago

ishandutta2007 commented 11 months ago

$ python example_extensive.py

Error:

Traceback (most recent call last):
  File "example_extensive.py", line 3, in <module>
    tag_cloud(link=22656, lim_num_tags=1000, image_dims=(3840, 2160),
  File "/Users/ishandutta2007/Documents/Projects/stackoverflow_tag_cloud/stackoverflow_users_taginfo.py", line 252, in tag_cloud
    info = taginfo(link=link, lim_num_tags=lim_num_tags)    
  File "/Users/ishandutta2007/Documents/Projects/stackoverflow_tag_cloud/stackoverflow_users_taginfo.py", line 164, in taginfo
    info1 = info_mainpage(start_link + '1')
  File "/Users/ishandutta2007/Documents/Projects/stackoverflow_tag_cloud/stackoverflow_users_taginfo.py", line 66, in info_mainpage
    str0 = find_between(str(soup.find_all("span", class_="count")))
  File "/Users/ishandutta2007/Documents/Projects/stackoverflow_tag_cloud/stackoverflow_users_taginfo.py", line 12, in find_between
    return in_str.split(start)[1].split(end)[0]
IndexError: list index out of range
rayryeng commented 2 months ago

The profile page for a user has been redesigned, which is why this error is occurring. There is a PR that was released two years ago that has yet to be merged that resolves this: https://github.com/droyed/stackoverflow_tag_cloud/pull/5