ntscraper
ntscraper copied to clipboard
Issue with Exclude paramater
Hi! Somewhat new to ntscraper. Tried to add the " exclude='replies' " parameter to my code and it threw the following error:
ValueError: Invalid exclusion filter 'r'. Valid filters are: nativeretweets, media, videos, news, verified, native_video, replies, links, images, safe, quote, pro_video
Is this a formatting error on my end, or something others have encountered as well? Either way, some help would be much appreciated!
Hi, you are getting that error because the 'exclude' parameter requires a list. To make it work, simply transform exclude='replies'
in exclude=['replies']
.