# 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 a file (image or video) or gallery of files (images) locally or from a remote location such as a [local or remote file system, Google Drive, ...] to upload to an OnlyFans account.
## Menu
[Menu](https://github.com/skeetzo/onlysnarf/blob/master/menu.md)
## Previews
![preview](https://github.com/skeetzo/onlysnarf/blob/master/images/preview.jpeg)
[Gallery](https://github.com/skeetzo/onlysnarf/blob/master/images/gallery.gif)
[Video](https://github.com/skeetzo/onlysnarf/blob/master/images/video.gif)
[Discount](https://github.com/skeetzo/onlysnarf/blob/master/images/discount-recent.gif)
[Message](https://github.com/skeetzo/onlysnarf/blob/master/images/message-recent-debug.gif)
## 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
--------------
When downloading/uploading from a Google Drive account 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](https://raw.githubusercontent.com/gsuitedevs/PyDrive/master/docs/quickstart.rst)
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'.
5. Click 'Download JSON' on the right side of Client ID to download **client_secret_<really long ID>.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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共43个文件
py:27个
txt:7个
md:3个
资源分类:Python库 所属语言:Python 资源全名:OnlySnarf-2.20.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
OnlySnarf-2.20.2.tar.gz (43个子文件)
OnlySnarf-2.20.2
MANIFEST.in 232B
PKG-INFO 6KB
OnlySnarf.egg-info
PKG-INFO 6KB
requires.txt 166B
SOURCES.txt 1014B
entry_points.txt 139B
top_level.txt 10B
dependency_links.txt 1B
ABOUT.md 4KB
setup.cfg 79B
setup.py 1KB
OnlySnarf
google_creds.txt 2B
bin
__init__.py 57B
menu.py 4KB
config.py 10KB
src
classes.py 29KB
settings.yaml 327B
colorize.py 1KB
user.py 22KB
elements
driver.py 14KB
__init__.py 95B
profile.py 11KB
cron.py 6KB
validators.py 6KB
__main__.py 388B
driver.py 127KB
__init__.py 456B
args.py 20KB
settings.py 21KB
file.py 38KB
element.py 2KB
selenium-notes.py 5KB
snarf.py 7KB
ffmpeg.py 9KB
bot.py 5KB
profile.py 16KB
google.py 19KB
remote.py 9KB
__init__.py 295B
config.conf 1KB
CHANGELOG.md 14KB
README.md 5KB
LICENSE.txt 1KB
共 43 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功