Skip to main content

OnlyFans Content Distribution Tool

Project description

OnlySnarf

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

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) locally or from a Google Drive folder as specified by run time arguments to an OnlyFans account.

Menu

Menu

Previews

preview Gallery Video Discount Message

Scripts

First run:

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

args

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

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

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

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

-text
python3 onlysnarf.py -category video -text "your mom"
Uploads a video labeled: 'your mom'

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

more available in menu

Or include a 'config.conf' file located at '/opt/onlysnarf/config.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.conf

Path: /opt/onlysnarf/config.conf (previously /etc/onlysnarf/config.conf) Create or update the "config.conf" 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 a more accessible automated entrance.

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 * * * onlysnarfpy -category image

Upload a random gallery of images every Wednesday at 2:30pm:
30 14 * * 3 onlysnarfpy -category gallery

Upload a random video every Friday in the month of June at 6:00pm:
00 18 * 6 5 onlysnarfpy -category video

Text will be generated if not provided with -text * 12 * * * onlysnarfpy -category image -text "Your mother is a dirty whore"

Dependencies

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

Referral

Feel free to make use of my referral code ;)
https://onlyfans.com/?ref=409408

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-2.17.19.tar.gz (75.7 kB view details)

Uploaded Source

Built Distribution

OnlySnarf-2.17.19-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: OnlySnarf-2.17.19.tar.gz
  • Upload date:
  • Size: 75.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.3

File hashes

Hashes for OnlySnarf-2.17.19.tar.gz
Algorithm Hash digest
SHA256 edefa160c47b9837aa3817628773405037638a4fa7ddb685578e3062b38b6c40
MD5 d4a322719afec28e26df336b95819e37
BLAKE2b-256 03b88ad9950615ada1a6fff0a55fc39243ceb068f988a2937bf8dc5081c9f95a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: OnlySnarf-2.17.19-py3-none-any.whl
  • Upload date:
  • Size: 77.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.3

File hashes

Hashes for OnlySnarf-2.17.19-py3-none-any.whl
Algorithm Hash digest
SHA256 a14882d6faaf17152e3b8fb13550b97c2fc0675e2a6c098dd307e923b204261e
MD5 b1c4bf385638098772fdc073ae7524ad
BLAKE2b-256 be0ae982f8fa031b661d45c41f1bf201fa66590d6ccb8925254849bf1ada361f

See more details on using hashes here.

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