Topic: Mass upvoting of all favorites?

Posted under General

I've recently hit the fave cap (Honestly didn't know there was one), but I've learned there's no upvote cap. So I was wondering if there was an easy and simple way to upvote all my fave posts so I can clear it out.

Also, is there a way to mass unfave?

Thanks in advance.

earlopain said:
Take a look at forum topic #29460, it seems to be exactly what you want. It upvotes all your favorites and removes the favs.

I tried it and it didn't work. Tbh, I have zero python or scripting skills of any kind, so might have messed it up. Not really easy and simple imo either.

Pup

Privileged

goldforest said:
I tried it and it didn't work. Tbh, I have zero python or scripting skills of any kind, so might have messed it up. Not really easy and simple imo either.

warsun said:
That may be a bug.

I tested it quite a bit and it worked for MDF in that thread, though without any scripting knowledge it'd definitely be more awkward to set up.

pup said:
I tested it quite a bit and it worked for MDF in that thread, though without any scripting knowledge it'd definitely be more awkward to set up.

Yeah... I'm... clueless as to how python works. I did a simple copy paste of the code and it threw up errors across the entire code.

pup said:
I tested it quite a bit and it worked for MDF in that thread, though without any scripting knowledge it'd definitely be more awkward to set up.

So, I got the script to run, but it gives me this error

Traceback (most recent call last): File "[Redacted personal info]\E6FavesToUpvotes.py", line 48, in <module> apiKey = apiTxt[1].split('=')[1].strip() IndexError: list index out of range

Pup

Privileged

goldforest said:
So, I got the script to run, but it gives me this error

Traceback (most recent call last): File "[Redacted personal info]\E6FavesToUpvotes.py", line 48, in <module> apiKey = apiTxt[1].split('=')[1].strip() IndexError: list index out of range

Ah, I forgot to fix that bug, on Windows you need to add a new line between your username and api key in apikey.txt, so:

username=your_username_here

api_key=your_api_key_here

It's because of the difference between how new lines are handled on Windows and Linux.

pup said:
Ah, I forgot to fix that bug, on Windows you need to add a new line between your username and api key in apikey.txt, so:

username=your_username_here

api_key=your_api_key_here

It's because of the difference between how new lines are handled on Windows and Linux.

Windows auto generated the space. I'll try running it again.

Edit: Nope, same error.

Edit edit: So I removed the space and it worked... it's updating posts right now.... very slowly.

Updated

pup said:
Ah, I forgot to fix that bug, on Windows you need to add a new line between your username and api key in apikey.txt, so:

username=your_username_here

api_key=your_api_key_here

It's because of the difference between how new lines are handled on Windows and Linux.

Is there a way to speed it up from 1 post per 2 seconds?

Pup

Privileged

goldforest said:
Is there a way to speed it up from 1 post per 2 seconds?

As AoBird says, there isn't sadly. The API has a recommended limit of 1 action per second over a long time, and upvoting is one action and favouriting's another.

I'm glad you got it working though

  • 1