Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (33 loc) · 1.75 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.75 KB

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.