Skip to content

A tool for automatically liking all of a user's posts on OnlyFans

License

Notifications You must be signed in to change notification settings

E0911CD45B19686/OnlyFans-AutoLiker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Officially Archived

This repo will no longer be maintained and its functionality (the ability to like and unlike posts) has been moved to my newer repo which will be actively maintained: onlyfans-scraper

OnlyFans-AutoLiker

Python Version 3.8+

A tool for automatically liking all of a user's posts on OnlyFans

Preface

You know how sometimes there's OnlyFans creators who will message you saying something along the lines of: "Like all of my posts and I'll send you something special 😘"? Sometimes they might only have 20 or 30 posts, so it's not too bad. But what if they have hundreds? Maybe even thousands? Well, this script will take of that for you.

Installation

This tool only requires the requests library so if you already have it, you're good to go. Head on down to the Configuration section!

Otherwise, run the following in your terminal:

$ pip3 install -r requirements.txt

Configuration

In order to use this, you are going to need to fill out a few fields in the auth.json file. Those fields are:

{
    "auth_id": "",
    "auth_uniq_": "",
    "sess": "",
    "user_agent": ""
}

Note: you will only need to fill out auth_uniq_ if you have 2FA (two-factor authentication) enabled

If you're familiar with DIGITALCRIMINAL's script, then great! All you have to do is copy the fields you filled out for that auth.json and paste them into this one! Now, you can go down to the Usage section.

If you're not, then don't worry; it's not hard to get them.

In order to get the proper values for those fields, open your web browser, go to OnlyFans, and make sure you're already logged in. Then, go to your 'Notifications' tab on OnlyFans and press the following keys to open your developer tools:

Operating System Keys
macOS altcmdi
Windows ctrlshifti
Linux ctrlshifti

Note: this table assumes you're using Google Chrome but this should work for other browsers as well, even Safari

Once you have the developer tools open, you need to click on the tab called Network and then click XHR:

Refresh the page if you don't see a field that starts with init?app-token. Once you see it, click on it and scroll down while in the Headers tab until you see a subsection called Request Headers. Inside of this subsection are two fields called cookie and user-agent. These are the two fields you need:

Inside cookie, you should find your sess and auth_id cookies (as well as your 'auth_uniq_' auth_uid_ cookie if you have 2FA enabled). Copy their corresponding values and paste them into their corresponding spots in the auth.json file. Finally, copy what's next to the user-agent field and paste it into the auth.json file as well.

Note: OnlyFans recently changed the name of the auth_uniq_ cookie to auth_uid_. In order to keep our auth.json file similar to DIGITALCRIMINAL's auth.json, I decided to keep the field in the .json file as auth_uniq_. In other words, your auth_uid_ value should go where the auth_uniq_ field is!

Your auth.json should look something like this:

{
    "auth": {
        "auth_id": "1698967",
        "auth_uniq_": "",
        "sess": "yesny3cj2jku169pk0ked1g2p",
        "app_token": "33d57ade8c02dbc5a333db99ff9ae26a",
        "user_agent": "Mozilla/420.0 (Windows NT 420.0; Win420; x420) AppleWebKit/420.420 (KHTML, like Gecko) Chrome/420.420.420.420 Safari/420.420"
    }
}

But if you have 2FA enabled, then make sure the auth_uniq_ field is filled.

Once that's all done, you're finally ready to use it!

Usage

In order to use the script, run the following in your terminal:

$ python3 autoliker.py username

Replace username with the username of the creator whose posts you want to like. For example:

$ python3 autoliker.py lenatheplugxxx

Command Line Arguments

Here are the available commands that you can use:

postional arguments:
 username          username of an OnlyFans content creator (that you're subscribed to)
 
optional arguments:
 -h, --help        show this help message and exit
 -t, --timeline    only like timeline posts
 -a, --archived    only like archived posts
 -u, --unlike      removes your likes from posts

Examples

Only likes timeline posts (you could also use -t instead of --timeline):

$ python autoliker.py lenatheplug --timeline

Only likes archived posts (you could also use --archived instead of -a):

$ python autoliker.py lenatheplug -a

Unlike all of a user's posts (you can also just use -u instead of --unlike):

$ python autoliker.py lenatheplug --unlike

Things to Note

  1. The script runs slowly

You may notice that the script sure does take its sweet, sweet time. This is intentional. I have the script set up to like post after post at a rate that seems 'natural' or 'human'. If you're using it on someone with a million posts, just let it run in the background and do something else.

  1. Use it at your own risk

This kind of builds off of the first point. With the current speed, nothing bad should happen but I am not responsible for any unforeseen circumstances, whether good or unfortunate.

To Do

  • Add option to like posts at a faster rate

About

A tool for automatically liking all of a user's posts on OnlyFans

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.3%
  • Dockerfile 1.7%