Coder Social home page Coder Social logo

autosaver's Introduction

AutoSaver

Given the issues in the world we all need to make savings, including our usage of various tools.

Takes a list of recomended savings from a trusted source, and then automatically applies them to your account.

Current status 23/05/2024

The preliminary version of the notebook now works, its a little rough and ready, but if you run it following the instructions, it'll work through the list, and make sure you've got all the savings.

It'll report back if there's been a problem with applying any of the savings, and then you can re-run the script and it'll make sure all the savings are applied, I will try to make this step unnecessary in a future version.

Prereqs

How to get running

Checkout the repo

git clone https://github.com/ladyrassilon/autosaver.git

You could also download the repo from github

Install the dependencies

cd autosaver
pip install -r autosaver/requirements.txt 

You will see output of the form like this

Collecting ipywidgets (from ipython[notebook]->-r autosaver/requirements.txt (line 1))
  Obtaining dependency information for ipywidgets from https://files.pythonhosted.org/packages/70/1a/7edeedb1c089d63ccd8bd5c0612334774e90cf9337de9fe6c82d90081791/ipywidgets-8.1.2-py3-none-any.whl.metadata
  Using cached ipywidgets-8.1.2-py3-none-any.whl.metadata (2.4 kB)
Collecting notebook (from ipython[notebook]->-r autosaver/requirements.txt (line 1))
  Obtaining dependency information for notebook from https://files.pythonhosted.org/packages/64/76/4437268f47f452fb4cd5cf73fa831241ea8130ae0ab9c64d5c4ffca9f121/notebook-7.2.0-py3-none-any.whl.metadata
  Downloading notebook-7.2.0-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: types-python-dateutil>=2.8.10 in /Users/<homeuser>/.pyenv/versions/3.11.7/envs/autosaver/lib/python3.11/site-packages (from arrow>=0.15.0->isoduration->jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->ipython[notebook]->-r requirements.txt (line 1)) (2.9.0.20240316)

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: python3.11 -m pip install --upgrade pip

Get those savings

Run the notebook environment

jupyter-notebook 

Once you see output like this

[I 2024-05-22 17:34:03.247 ServerApp] Jupyter Server 2.14.0 is running at:
[I 2024-05-22 17:34:03.247 ServerApp] http://localhost:8888/tree?token=<a-mysterious-token>
[I 2024-05-22 17:34:03.247 ServerApp]     http://127.0.0.1:8888/tree?token=<a-mysterious-token>
[I 2024-05-22 17:34:03.247 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

A browser should open to the jupyterhub home

Jupyterhub home with an arrow pointing to the get the savings notebook

Double click on the get-those-savings.ipynb and the notebook will open

Open notebook with an arrow pointing to the run cell command

You need to step through the cells (each box is a notebook cell).

You can either click on the run cell button, or press Shift + Enter

Do this for each of the first three cells.

Then a firefox browser will open on instagram, login before continuing.

Then run the next 4 cells until you get to the big cell.

The big cell with the magic

Run the cell, and wait. It will take quite a while because instagram doesn't like you applying too many savings too quickly, so it waits 30-60 seconds before applying the next, and there's about 850 savings to apply, so if you've not got any savings applied, it'll take about 10 hours. There's no reason why you can't use your computer, but just make sure you don't interfere with that instance of firefox.

However if it all goes wrong, you can just restart the process and it'll only apply savings you haven't already got applied.

If there are any problems, it'll list those ones it had to skip, you can just re-run that cell by clicking on it and running again. It'll only apply the missing savings.

Issues

Please add any issues you have to github issues and I'll try to get them

Sources

The savings lists are the two backup savings accounts after something unusual happened to the main savings account.

I will try to update the lists of savings as much as possible, and you can pull down the latest versions of the lists.

cd autosaver
git pull

Other Notebooks

  • Update Lists This updates the json/text files as needed, using instagram private api3.

Why I'm doing this

Caelan Conrad suggested that this might be something important to help out with

https://www.youtube.com/watch?v=wj8ZxXonwFk

Hippocratic License HL3-BDS-CL-ECO-EXTR-FFD-LAW-MEDIA-MIL-MY-SUP-SV-TAL-USTA-XUAR

Footnotes

  1. I personally use pyenv to manage my python versions, but I have ~10 different ones on my computer, but you don't need anything like this if you're not doing development.

  2. It might work with chrome, or other automated browsers, but I was trying to get this to work asap, so I used firefox and haven't tested porting the code as yet.

  3. You shouldn't need to run this, because it uses an unsupported api that I do not trust/recommend you use with your main instagram account

autosaver's People

Contributors

ladyrassilon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.