Code Monkey home page Code Monkey logo

unheartit's Introduction

Deprecated

WeHeartIt has announced that they are deleting all 12+ years worth of content and accounts and turn their existing brand into yet another image editing app with a subscription based paid model. All content, accounts and outstanding will be gone by November 30th 2023. If you're reading this before then, you can download your uploaded content at https://weheartit.com/settings/download

UnHeartIt

A script to unheart all posts on a WeHeartIt account.

How it works

This script logs into your WeHeartIt account and goes through all of your posts, unhearting each one. It does this by making HTTP requests to the WeHeartIt API using the axios library. To parse the HTML response, it uses the cheerio library.

The script reads in a config.json file with your WeHeartIt account name and login token. It then loads the first page of your posts, parses the HTML response to find the links to each post, and unhearts each post using the API. If it finds that it has already unhearted a post, it will reset and start unhearting again from the first page.

Usage

  1. Make sure you have Node.js installed.
  2. Clone this repository and navigate to the directory:
git clone https://github.com/rico-vz/UnHeartIt.git
cd weheartit-unheart-all
  1. Edit the config.json file in the root directory with your WeHeartIt account name and login token:
{
  "name": "your-username",
  "login_token": "your-login-token"
}
  1. Install the dependencies:
npm install
  1. Run the script:
node index.js

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

unheartit's People

Contributors

rico-vz 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.