UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

Full Scrape Went from 10 Minutes to 3 Hours After Updating to 5.1

Open NotMyMainOne opened this issue 6 years ago • 11 comments

Hello again,

For some reason the new version takes forever to run. I noticed it goes through every single file one by one during the initial scrape and says: FOUND: \full\file\path\ It doesn't say what the file is but it gives the file path for every item. It does eventually complete successfully but I'm curious as to what in the update causes this behavior.

"settings": { "auto_choice": "a", "auto_scrape_names": false, "auto_scrape_apis": true, "download_path": "{site_name}", "file_name_format": "{date} - {media_id}.{ext}", "text_length": "255", "overwrite_files": false, "date_format": "%Y-%m-%d", "ignored_keywords": [], "ignore_type": "b", "export_metadata": true, "delete_legacy_metadata": false, "sort_free_paid_posts": false, "blacklist_name": "Skip"

NotMyMainOne avatar Jul 03 '20 01:07 NotMyMainOne

Was that the first time you ran it? Make sure you didn't redownload everything, it happened to me because there was a change in the directory structure. If that's not the case, hopefully you'll get help.

WellSomething avatar Jul 03 '20 14:07 WellSomething

The script goes through every file and converts them to the correct file_name_format.

UltimaHoarder avatar Jul 07 '20 15:07 UltimaHoarder

I'd understand if it was only the first go through but it does it and takes just as long on every single run without changing the file_name_format.

NotMyMainOne avatar Jul 09 '20 01:07 NotMyMainOne

Have you tried the latest commit

UltimaHoarder avatar Jul 09 '20 01:07 UltimaHoarder

Running it right now and it's going slow still. Is there a way to skip the OFRenamer process once we have all file names in the current format?

NotMyMainOne avatar Jul 09 '20 01:07 NotMyMainOne

How do you know it's running slow though? Does it say "FOUND" and waits a minute or is it something else?

UltimaHoarder avatar Jul 09 '20 01:07 UltimaHoarder

It's doing the Found message and taking a few seconds for every photo. So for accounts with thousands of photos it takes an extremely long time compared to before. Can that process be skipped?

NotMyMainOne avatar Jul 09 '20 01:07 NotMyMainOne

What's the username you're scraping

UltimaHoarder avatar Jul 09 '20 01:07 UltimaHoarder

sophiestonem (it's a free account).

It was doing it with different accounts as well. Although funnily enough when I scraped another different user it went quick through the posts but then slow through the messages.

NotMyMainOne avatar Jul 09 '20 01:07 NotMyMainOne

sophiestonem (it's a free account).

It was doing it with different accounts as well. Although funnily enough when I scraped another different user it went quick through the posts but then slow through the messages.

Yeah, I have to get messages a different way compared to getting posts since the API doesn't tell you total messages sent.

If you let the script go through the posts, you shouldn't see the "Found" message again.

UltimaHoarder avatar Jul 09 '20 01:07 UltimaHoarder

Unfortunately I'm still getting it and it goes through just as slowly the second time. Takes 90 minutes for that one account with no new content added.

NotMyMainOne avatar Jul 09 '20 07:07 NotMyMainOne