TwitterScraper: TypeError: 'NoneType' object is not subscriptable

python3 ./scrape.py -u jack

Traceback (most recent call last):
  File "./scrape.py", line 276, in <module>
    begin = datetime.strptime(args.since, DATE_FORMAT) if args.since else get_join_date(args.username)
  File "./scrape.py", line 256, in get_join_date
    date_string = soup.find("span", {"class": "ProfileHeaderCard-joinDateText"})["title"].split(" - ")[1]
TypeError: 'NoneType' object is not subscriptable

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

Thank you @MatthewWolff for the quick help. Works like a charm. 💯 👍