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) from a Google Drive folder as specified by run time arguments to an OnlyFans account.
Menu
Previews
Gallery Video Discount Message
Scripts
First run:
(sudo) onlysnarf-config
Then from within project's OnlySnarf directory either:(sudo) onlysnarf [args]
(sudo) onlysnarfpy (-debug) -type image|gallery|video
- or directly via
python3 onlysnarf.py (-debug) -type image|gallery|video
args
-debug
python3 onlysnarf.py -debug
Tests configuration. Does not upload or remove from Google Drive.
-type image
python3 onlysnarf.py -type image
Uploads an image labeled: 'imageName - %d%m%y'
-type gallery
python3 onlysnarf.py -type gallery
Uploads a gallery labeled: 'folderName - %d%m%y'
-type video
python3 onlysnarf.py -type video
Uploads a video labeled: 'folderName - %d%m%y'
-text
python3 onlysnarf.py -type video -text "your mom"
Uploads a video labeled: 'your mom - %d%m%y'
-show-window
python3 onlysnarf.py -show-window
Shows the Chromium browser
more available in menu
Or include a 'config.conf' file located at '/etc/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
- Go to
APIs Console
_ and make your own project. - Search for 'Google Drive API', select the entry, and click 'Enable'.
- Select 'Credentials' from the left menu, click 'Create Credentials', select 'OAuth client ID'.
- 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'.
- 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: /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 -type image
Upload a random gallery of images every Wednesday at 2:30pm:
30 14 * * 3 onlysnarfpy -type gallery
Upload a random video every Friday in the month of June at 6:00pm:
00 18 * 6 5 onlysnarfpy -type video
Text will be generated if not provided with -text
* 12 * * * onlysnarfpy -type image -text "Your mother is a dirty whore"
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
Built Distribution
File details
Details for the file OnlySnarf-2.11.0.tar.gz
.
File metadata
- Download URL: OnlySnarf-2.11.0.tar.gz
- Upload date:
- Size: 42.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f73309247562cc28695e4bbffd29bf70c7b43befc07e5c21b9de06486faa31d9 |
|
MD5 | a890826f82017a64d06126a03abd263b |
|
BLAKE2b-256 | 74d81c3a2a51954cd824eff85c8cec1608c48863537c2c7055047d01fb45c9cb |
File details
Details for the file OnlySnarf-2.11.0-py3-none-any.whl
.
File metadata
- Download URL: OnlySnarf-2.11.0-py3-none-any.whl
- Upload date:
- Size: 39.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65e67be254ca8639893cf050e4aeb3ddd846a41ecebdd1a3793a5dfe674a424 |
|
MD5 | 07cf3f5861485887806af2a523968f95 |
|
BLAKE2b-256 | 84506c8cbcdf0f23234322b53a8961751dc762379184e93d26153bb29b0f7236 |