When I try to scrape any profile using the latest version and Python 3.92 on windows, I get this error
Type: Profile
Traceback (most recent call last):
File "D:\OF Scraper\DigitalCriminal Onlyfans\start_ofd.py", line 43, in
apis = main_datascraper.start_datascraper(json_config, site_name_lower)
File "D:\OF Scraper\DigitalCriminal Onlyfans\datascraper\main_datascraper.py", line 98, in start_datascraper
names = main_helper.process_names(
File "D:\OF Scraper\DigitalCriminal Onlyfans\helpers\main_helper.py", line 625, in process_names
result = module.start_datascraper(
File "D:\OF Scraper\DigitalCriminal Onlyfans\modules\onlyfans.py", line 147, in start_datascraper
results = prepare_scraper(
File "D:\OF Scraper\DigitalCriminal Onlyfans\modules\onlyfans.py", line 662, in prepare_scraper
profile_scraper(api, site_name, api_type, username,
File "D:\OF Scraper\DigitalCriminal Onlyfans\modules\onlyfans.py", line 271, in profile_scraper
d_session = download_session()
File "C:\Python39\lib\site-packages\tqdm_tqdm.py", line 383, in new
cls.monitor = TMonitor(cls, cls.monitor_interval)
File "C:\Python39\lib\site-packages\tqdm_tqdm.py", line 68, in init
getattr(sys, 'setcheckinterval'))(100)
AttributeError: module 'sys' has no attribute 'setcheckinterval'
swap sys.setcheckinterval() with sys.setswitchinterval().
sys.getcheckinterval() and sys.setcheckinterval() functions have been removed. They were deprecated since Python 3.2. Use sys.getswitchinterval() and sys.setswitchinterval() instead
You have a really old version of the tqdm library (it was fixed in 2017), reinstall your libraries pip install -r requirements.txt.
This issue can get closed/moved to discussions.
Weird, pip was refusing to update it from 4.11.2 (from 2017) because thats what it had installed locally. I edited my requirements.txt to say tqdm >= 4.57 and re-installed requirements and it worked