taux1c / onlyfans-scraper

A tool that allows you to print to file all content you are subscribed to on onlyfans including content you have unlocked or has been sent to you in messages.
MIT License
290 stars 34 forks source link

Installed with pip and the win32_setctime module did not get installed causing undesirable behavior in the program #48

Closed AwkwardCauliflower closed 1 year ago

AwkwardCauliflower commented 1 year ago

Description

In download.py, you're loading the win32_setctime module in a try/except, and if that fails, you're still trying to use it later, causing a crash and preventing the database from being updated.

Fix

A quick fix would be another try/except on line 152 when calling setctime.

More Information

I used pip install onlyfans-scraper to install.

I ran the program and it worked. It downloaded many files, but when I tried to resume the download later, it started over. Turns out, it wasn't saving any file entries in the models.db database. I saw one table per subscription, but they were both empty.

I remembered seeing an error in the progress for every file download: name setctime does not exist or something like that. I learned that's a WIN32 command to set file creation time, and after looking in the code I realized I didn't have the win32_setctime module in my Python environment. I added this requirement manually using pip and I'm not getting the error now, and the database is being updated properly.

Desktop:

StPatty33 commented 1 year ago

Thank you for the info. I was having the same exact issue and it appears to be working now after doing pip install win32_setctime.

taux1c commented 1 year ago

This repo is outdated (no longer works) and I am no longer maintaining it.