Skip to main content

OnlyFans Content Distribution Tool

Project description

OnlySnarf

git clone git@github.com:skeetzo/onlysnarf && sudo python3 setup.py install OR pip3 install OnlySnarf

Description

OnlySnarf is a python based automation tool to assist with uploading content to OnlyFans. OnlySnarf is capable of downloading and uploading a file (image or video) or gallery of files (images) from a Google Drive folder as specified by run time arguments to an OnlyFans account. OnlySnarf can mass messages fans with priced images.

Preview

preview

Scripts

First run:

  • (sudo) onlysnarf-config Then from within project's OnlySnarf directory either:
  • (sudo) onlysnarf [args]
  • or directly via python3 onlysnarf.py (-debug) -image|-gallery|-video

args

-debug
python3 onlysnarf.py -debug
Tests configuration. Does not upload or remove from Google Drive.

-image
python3 onlysnarf.py -image
Uploads an image labeled: 'imageName - %d%m%y'

-gallery
python3 onlysnarf.py -gallery
Uploads a gallery labeled: 'folderName - %d%m%y'

-video
python3 onlysnarf.py -video
Uploads a video labeled: 'folderName - %d%m%y'

-text
python3 onlysnarf.py -video -text "your mom"
Uploads a video labeled: 'your mom - %d%m%y'

-hash(tag)
python3 onlysnarf.py -hash
Uploads a video with the source folder split into hash tags: '#folderName'

-force (upload)
python3 onlysnarf.py -force
Attempts to upload limit regardless of file size.

-show python3 onlysnarf.py -show Shows the Chromium browser

more available in menu

Or include a 'profile.conf' file located at '/etc/onlysnarf/profile.conf' to set variables at runtime without using arguments. An example file has been provided. Please be sure to follow the key:value pattern. A starting # denotes a comment.

Authentication


The use of this package requires configuring a Google App with PyDrive for access to your Google Drive. The Drive API requires OAuth2.0 for authentication.

from Auth Quickstart
  1. Go to APIs Console_ and make your own project.
  2. Search for 'Google Drive API', select the entry, and click 'Enable'.
  3. Select 'Credentials' from the left menu, click 'Create Credentials', select 'OAuth client ID'.
  4. Now, the product name and consent screen need to be set -> click 'Configure consent screen' and follow the instructions. Once finished:

a. Select 'Application type' to be Web application. b. Enter an appropriate name. c. Input http://localhost:8080 for 'Authorized JavaScript origins'. d. Input http://localhost:8080/ for 'Authorized redirect URIs'. e. Click 'Create'.

  1. Click 'Download JSON' on the right side of Client ID to download client_secret_.json.

Rename the file to "client_secrets.json" and place it into your installed OnlySnarf directory. To update your installation with the new file, run onlysnarf-config, select 'Update Google Creds', and enter the location of your "client_secret.json" file.

Config

config.json

Create or update the "config.json" file with the following values:

  • username -> the Twitter connected to your OnlyFans's username
  • password -> the Twitter conencted to your OnlyFans's password
Why Twitter credentials?

OnlyFans uses a captcha to prevent malicious bots from accessing user accounts. However, this captcha is only necessary when logging in with your OnlyFans username and password. Logging in with the provided Twitter authentication does not provide a captcha and thus allows an easier automated entry.

google_creds.txt

Generated by Google Drive's authentication process. Saves Google authentication for repeat access.

settings.yaml

Used to facilitate Google Drive's python authentication. Requires generating an app w/ credentials via Google Console. Credentials are authenticated once and then saved to "google_creds.txt".

Example Crons

Upload a random image once a day at noon:
* 12 * * * python3 onlysnarf.py -image

Upload a random gallery of images every Wednesday at 2:30pm:
30 14 * * 3 python3 onlysnarf.py -gallery

Upload a random video every Friday in the month of June at 6:00pm:
00 18 * 6 5 python3 onlysnarf.py -video

Text will be generated if not provided with -text * 12 * * * python3 onlysnarf.py -image -text "Your mother is a dirty whore"

Profiles

A profile of preset variables can be used by modifying the 'profile.conf' file. A config file located at /etc/onlysnarf/profile.conf will be prioritized.

Dependencies

Google Chrome -> sudo apt install -y google-chrome-beta

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

OnlySnarf-1.3.4.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

OnlySnarf-1.3.4-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file OnlySnarf-1.3.4.tar.gz.

File metadata

  • Download URL: OnlySnarf-1.3.4.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for OnlySnarf-1.3.4.tar.gz
Algorithm Hash digest
SHA256 57f8cac10a429f3cc663c406c11616e50c6270f4a07b1cc2653c868e35875b88
MD5 253880470e86f4a9e2d48a284b2fb70e
BLAKE2b-256 ba947678a5d8e37bb830ed39d8bf36d78c7c1e1b8706e9c5878dccfdcb8271bf

See more details on using hashes here.

Provenance

File details

Details for the file OnlySnarf-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: OnlySnarf-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for OnlySnarf-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f01e772846a6b94682693bfe4c898b5521f4f39ff29c9315ea4ddf90805417b7
MD5 fd0e7e51dfa4327b9fa0663e36d8999d
BLAKE2b-256 1c3259cd4b89dd9ed42dea749f1e5eb193b3159850101e1a3edc01c3a223851f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page