Q: Why would someone want this?
A: Previously I had made a stamps sent tracker
here. This allowed one to track
which stamps they have already sent to their friend (in order to prevent sending
duplicates and having your friend 😞). Now that slowly allows stamp
collections for a penpal to be public officially, we can take advantage of that
information to choose from our stamp set whatever they are missing in their
collection.
This script is as clean and user-friendly as I could make it.
Meaning - it isn't and needs some getting your hands dirty! 😝
ATTENTION: This script won't work for penpals who have their stamp collection set to hidden. They need to have it public.
Save all below files in the same directory.
my_friends.json
: See given sample file. This needs to be filled up by you (check howto in steps below).my_info.json
: See given sample file. This needs to be filled up by you (check howto in steps below).fetch.py
: The main python script. Run simply withpython3 fetch.py
. Follow the steps below before running.
- Open developer tools in your Browser (I'm using the Chrome browser, there would be similar tools for other browsers as well).
- Open the slowly desktop site.
- Go to the network tab in developer tools to check out all the requests the browser made when you visited the slowly desktop site.
- Find a request which looks like this -
https://api.getslowly.com/web/me?token=someLongRandomStringWhichIsActuallyAToken
.- The response to this request is a JSON object, which contains information about your account (and your stamps which we are interested in here).
- Copy the value of this field and dump it in the file
my_info.json
. - Note: Everytime a new stamp is added to collection, redo this step.
- Find a request which looks like this -
https://api.getslowly.com/users/me/friends/v2?requests=1&dob=true&token=someLongRandomStringWhichIsActuallyAToken
.- The response to this request is a JSON object, which contains information about your current friends.
- Copy the value of this field and dump it in the file
my_friends.json
. - Note: Everytime you make new friends, redo this step.
- Now fill in the name of your friend in
FRIEND_NAME
offetch.py
. - Run
python3 fetch.py
.