JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.39k stars 702 forks source link

twitter-thread TypeError missing 6 required positional arguments #205

Closed elig0n closed 3 years ago

elig0n commented 3 years ago

running snscrape twitter-thread TWEET_ID raise a traceback:

 CRITICAL  snscrape._cli  Dumped stack and locals to /tmp/snscrape_locals_id4qur3c
Traceback (most recent call last):
  File "/home/u/.local/bin/snscrape", line 8, in <module>
    sys.exit(main())
  File "/home/u/.local/lib/python3.9/site-packages/snscrape/_cli.py", line 270, in main
    for i, item in enumerate(scraper.get_items(), start = 1):
  File "/home/u/.local/lib/python3.9/site-packages/snscrape/modules/twitter.py", line 610, in get_items
    items = list(self._feed_to_items([tweet]))
  File "/home/u/.local/lib/python3.9/site-packages/snscrape/modules/twitter.py", line 163, in _feed_to_items
    yield Tweet(url, date, content, tweetID, username, outlinks, ' '.join(outlinks), tcooutlinks, ' '.join(tcooutlinks))
TypeError: __init__() missing 6 required positional arguments: 'retweetCount', 'likeCount', 'quoteCount', 'conversationId', 'lang', and 'source'
JustAnotherArchivist commented 3 years ago

Duplicate of #176