<h1 align="center">OnlySnarf</h1>
<p align="center"><img src="public/images/snarf-missionary.jpg" alt="Shnarf" width="400"/></p>
<p align="center">Please refer to the <a href="public/docs/menu.md">Menu</a> for help with the available arguments and config settings.</p>
## Description
OnlySnarf is a python based automation tool to assist with uploading content to OnlyFans by interacting with the site purely via web scraping. OnlySnarf carries no weapons, but it has been known to use its tail, teeth and claws when improperly configured.
Here are some fuzzy debugging previews of how it looks when everything works:
- [Discount](//ipfs.io/ipfs/QmboqfpCeAAbbhqGhPQ8cCscqm7CNH4mxTPR42g8Cg7iLW?filename=discount.gif)
- [Message](//ipfs.io/ipfs/QmXitqxkRuMXb6XnUJw7MHUxLii7UNEXjENc5k4PyfTWfY?filename=message.gif)
- [Poll](//ipfs.io/ipfs/QmNkE4GpBoiQ3tGLLfxtTGS96jJJJixS4qbkx9fxN9GeYC?filename=poll.gif)
- [Post](//ipfs.io/ipfs/QmUBjuLK3yh5v4U9SSPmSG3NAGgYaY6rYoYACGi1smZpJ7?filename=post.gif)
- [Schedule](//ipfs.io/ipfs/QmUd843FXXyMP2eyfkB1d1erZyrKN1hmKchuviruzN8ctD?filename=schedule.gif)
- [Users](//ipfs.io/ipfs/Qmc9zPytgSKx4EK6V1A8DABNeCpMxBybcRs4hNtAMSKDyi?filename=users.gif)
## Installation
There are two installation options:
1) via pip for the latest official package: `python3 -m pip install onlysnarf`
2) or clone the repo & setup a virtual environment to install locally like in the bash script at [bin/virtualenv.sh](/bin/virtualenv.sh)
Once installed run the command: `snarf config`
1) Select 'reset' to reset / copy the main configuration file to its default location
2) Add an OnlyFans user profile to login with via 'Add'
Here is an output of the command: [`snarf -h`](/public/docs/help.md/#-h)
Command example: `snarf --username $username -text "suck my giant balls" /path/to/imageOfBalls.jpeg`
Version: `snarf -version` or `snarf --version`
## Config
Example config files are provided. There are two main types of config files that should be provided to affect runtime behavior as well as one optional method to help distinguish between user logins for multiple accounts.
1) the config for the general app's behavior: `$HOME/.onlysnarf/config.conf`
2) one config for each user containing their credentials: `$HOME/.onlysnarf/users/$username.conf`
3) (optional) one config containing the default user credentials to use: `$HOME/.onlysnarf/users/default.conf`
The user config to use at runtime can be specificed with the "--username" argument.
User config example: "--username alexdicksdown" --> `$HOME/.onlysnarf/users/alexdicksdown.conf`
When no "--username" argument is passed at runtime or in the config file then the default config file containing the default user credentials is used.
The command `snarf config` is available for help adding, listing, updating, and removing **user** config files.
**Note for Windows**: the user's $HOME path works out to `C:\Users\YOUR_USERNAME` so the base directory for config files and such can instead be found at `C:\Users\YOUR_USERNAME\.onlysnarf`
**No**, the user credentials **are not** handled in the safest manner because they are very clearly **stored in plain text** with **no encryption**. Yes, a better way can be figured out. Do I think a better way is necessary for this project? No. So please be careful with your own credentials.
## API
The api server is super basic and as such runs with the Flask development server behind the standard port 5000. Be sure to remember to open this port when attempting to make requests and don't spam your own server. The api fulfills a niche role built by request and allows OnlySnarf to passively wait to receive requests from the internet with the necessary data to post or message appropriately.
Make POST requests with the same basic discount, message, or post data to: /discount or /message or /post
## Menu
The `snarf menu` command has been semi-restored and still requires further updates to return to the same pointless iteration of glory.
## Dependencies
Selenium's webdriver manager should install everything it needs automatically. If left unspecified the default browser argument is "auto" which will cylce throuch each web driver available and attempt to spawn a working browser. If you are using a Raspberry Pi 4, be sure to run `sudo apt-get install chromium-chromedriver` on your device to be able to launch chrome. Firefox should work via the firefox-snap. The only working browsers for me have been chrome and firefox and so the others are unlikely to work without extra tinkering by yourself.
## Platforms
Code versions:
- Python: 3.10.12
- selenium: 4.8.3
- webdriver_manager: 4.0.0
Runs successfully on:
- Linux Ubuntu : 86_64
- Windows 11
Runs sucessfully with browsers:
- Chrome
- Firefox
Runs successfully on devices:
- Raspberry Pi 4 : aarch64
## Dev
If you are doing your own development or webscraping all of the related files are available at: [OnlySnarf/lib/webdriver](/OnlySnarf/lib/webdriver)
And the shortcut file for [webdriver](/OnlySnarf/lib/driver.py) behaviors that I'm not quire sure if I want to be a class or not but is used to funnel proper interactions through.
More in code commenting / documentation will come later.
## Tests
The test environment uses the config file found at: [OnlySnarf/conf/test-config.conf](/OnlySnarf/conf/test-config.conf)
Basic unittesting behavior organized by classes:
- `python -m unittest tests/classes/test_discount.py`
- `python -m unittest tests/classes/test_post.py`
- `python -m unittest tests/classes/test_message.py`
- `python -m unittest tests/classes/test_users.py`
and by webdriver interactions:
- `python -m unittest tests/webdriver/test_discount.py`
- `python -m unittest tests/webdriver/test_post.py`
- `python -m unittest tests/webdriver/test_message.py`
- `python -m unittest tests/webdriver/test_users.py`
Pytests available under /tests:
- `pytest tests`
- `pytest tests/classes`
- `pytest tests/selenium`
- `pytest tests/webdriver`
## Updates
7/5/2023 : clarifications to readme and menu text...
4/18/2023 : to further reduce repo size, preview gifs have been relocated to [IPFS](//ipfs.io/ipfs/QmVpjSy9NXy3VUM474hSDoPSsmsb5WVYkN9WN6N7nFxZuj).
9/20/2023 : major cleanup of webdriver structure & overlap with classes; test scripts overhaul to match
<hr>
Feel free to make use of my <a href="//onlyfans.com/?ref=409408" target="_blank">referral code</a> ;)
Raw data
{
"_id": null,
"home_page": "https://github.com/skeetzo/onlysnarf",
"name": "OnlySnarf",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "OnlyFans, OnlySnarf, selenium, snarf",
"author": "Skeetzo",
"author_email": "WebmasterSkeetzo@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/74/85/138d466db91e8eea603d195c8401d3f2689f9520aeb4a161fa0fa83cd6ec/onlysnarf-4.7.2.tar.gz",
"platform": null,
"description": "<h1 align=\"center\">OnlySnarf</h1>\n<p align=\"center\"><img src=\"public/images/snarf-missionary.jpg\" alt=\"Shnarf\" width=\"400\"/></p>\n<p align=\"center\">Please refer to the <a href=\"public/docs/menu.md\">Menu</a> for help with the available arguments and config settings.</p> \n\n## Description\nOnlySnarf is a python based automation tool to assist with uploading content to OnlyFans by interacting with the site purely via web scraping. OnlySnarf carries no weapons, but it has been known to use its tail, teeth and claws when improperly configured.\n\nHere are some fuzzy debugging previews of how it looks when everything works:\n- [Discount](//ipfs.io/ipfs/QmboqfpCeAAbbhqGhPQ8cCscqm7CNH4mxTPR42g8Cg7iLW?filename=discount.gif)\n- [Message](//ipfs.io/ipfs/QmXitqxkRuMXb6XnUJw7MHUxLii7UNEXjENc5k4PyfTWfY?filename=message.gif)\n- [Poll](//ipfs.io/ipfs/QmNkE4GpBoiQ3tGLLfxtTGS96jJJJixS4qbkx9fxN9GeYC?filename=poll.gif)\n- [Post](//ipfs.io/ipfs/QmUBjuLK3yh5v4U9SSPmSG3NAGgYaY6rYoYACGi1smZpJ7?filename=post.gif)\n- [Schedule](//ipfs.io/ipfs/QmUd843FXXyMP2eyfkB1d1erZyrKN1hmKchuviruzN8ctD?filename=schedule.gif)\n- [Users](//ipfs.io/ipfs/Qmc9zPytgSKx4EK6V1A8DABNeCpMxBybcRs4hNtAMSKDyi?filename=users.gif)\n\n## Installation\nThere are two installation options:\n1) via pip for the latest official package: `python3 -m pip install onlysnarf` \n2) or clone the repo & setup a virtual environment to install locally like in the bash script at [bin/virtualenv.sh](/bin/virtualenv.sh) \n\nOnce installed run the command: `snarf config`\n1) Select 'reset' to reset / copy the main configuration file to its default location\n2) Add an OnlyFans user profile to login with via 'Add'\n\nHere is an output of the command: [`snarf -h`](/public/docs/help.md/#-h) \n \nCommand example: `snarf --username $username -text \"suck my giant balls\" /path/to/imageOfBalls.jpeg` \nVersion: `snarf -version` or `snarf --version` \n\n## Config\nExample config files are provided. There are two main types of config files that should be provided to affect runtime behavior as well as one optional method to help distinguish between user logins for multiple accounts.\n1) the config for the general app's behavior: `$HOME/.onlysnarf/config.conf`\n2) one config for each user containing their credentials: `$HOME/.onlysnarf/users/$username.conf`\n3) (optional) one config containing the default user credentials to use: `$HOME/.onlysnarf/users/default.conf`\n\nThe user config to use at runtime can be specificed with the \"--username\" argument. \nUser config example: \"--username alexdicksdown\" --> `$HOME/.onlysnarf/users/alexdicksdown.conf`\nWhen no \"--username\" argument is passed at runtime or in the config file then the default config file containing the default user credentials is used.\n\nThe command `snarf config` is available for help adding, listing, updating, and removing **user** config files.\n\n**Note for Windows**: the user's $HOME path works out to `C:\\Users\\YOUR_USERNAME` so the base directory for config files and such can instead be found at `C:\\Users\\YOUR_USERNAME\\.onlysnarf`\n\n**No**, the user credentials **are not** handled in the safest manner because they are very clearly **stored in plain text** with **no encryption**. Yes, a better way can be figured out. Do I think a better way is necessary for this project? No. So please be careful with your own credentials.\n\n## API\nThe api server is super basic and as such runs with the Flask development server behind the standard port 5000. Be sure to remember to open this port when attempting to make requests and don't spam your own server. The api fulfills a niche role built by request and allows OnlySnarf to passively wait to receive requests from the internet with the necessary data to post or message appropriately.\n\nMake POST requests with the same basic discount, message, or post data to: /discount or /message or /post\n\n## Menu\nThe `snarf menu` command has been semi-restored and still requires further updates to return to the same pointless iteration of glory.\n\n## Dependencies\nSelenium's webdriver manager should install everything it needs automatically. If left unspecified the default browser argument is \"auto\" which will cylce throuch each web driver available and attempt to spawn a working browser. If you are using a Raspberry Pi 4, be sure to run `sudo apt-get install chromium-chromedriver` on your device to be able to launch chrome. Firefox should work via the firefox-snap. The only working browsers for me have been chrome and firefox and so the others are unlikely to work without extra tinkering by yourself.\n\n## Platforms\nCode versions:\n- Python: 3.10.12\n- selenium: 4.8.3\n- webdriver_manager: 4.0.0\n\nRuns successfully on:\n- Linux Ubuntu : 86_64 \n- Windows 11\n\nRuns sucessfully with browsers:\n- Chrome\n- Firefox\n\nRuns successfully on devices:\n- Raspberry Pi 4 : aarch64\n\n## Dev\nIf you are doing your own development or webscraping all of the related files are available at: [OnlySnarf/lib/webdriver](/OnlySnarf/lib/webdriver) \nAnd the shortcut file for [webdriver](/OnlySnarf/lib/driver.py) behaviors that I'm not quire sure if I want to be a class or not but is used to funnel proper interactions through. \nMore in code commenting / documentation will come later. \n\n## Tests\n\nThe test environment uses the config file found at: [OnlySnarf/conf/test-config.conf](/OnlySnarf/conf/test-config.conf) \n\nBasic unittesting behavior organized by classes:\n- `python -m unittest tests/classes/test_discount.py`\n- `python -m unittest tests/classes/test_post.py`\n- `python -m unittest tests/classes/test_message.py`\n- `python -m unittest tests/classes/test_users.py`\nand by webdriver interactions:\n- `python -m unittest tests/webdriver/test_discount.py`\n- `python -m unittest tests/webdriver/test_post.py`\n- `python -m unittest tests/webdriver/test_message.py`\n- `python -m unittest tests/webdriver/test_users.py`\n\nPytests available under /tests:\n- `pytest tests`\n- `pytest tests/classes`\n- `pytest tests/selenium`\n- `pytest tests/webdriver`\n\n## Updates\n7/5/2023 : clarifications to readme and menu text... \n4/18/2023 : to further reduce repo size, preview gifs have been relocated to [IPFS](//ipfs.io/ipfs/QmVpjSy9NXy3VUM474hSDoPSsmsb5WVYkN9WN6N7nFxZuj). \n9/20/2023 : major cleanup of webdriver structure & overlap with classes; test scripts overhaul to match \n\n<hr>\nFeel free to make use of my <a href=\"//onlyfans.com/?ref=409408\" target=\"_blank\">referral code</a> ;)\n",
"bugtrack_url": null,
"license": null,
"summary": "OnlyFans Content Distribution Tool",
"version": "4.7.2",
"project_urls": {
"Homepage": "https://github.com/skeetzo/onlysnarf"
},
"split_keywords": [
"onlyfans",
" onlysnarf",
" selenium",
" snarf"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "518b15834258853267924b749e4f604f7112747e3ee061b22fb396c1c1009b51",
"md5": "570015a8ad26a844bbd0e696a02f5f52",
"sha256": "9f64b66810fb52b920be4f4ff3d13f27defff0e909c3e7a5a6ab3f90285ffb11"
},
"downloads": -1,
"filename": "OnlySnarf-4.7.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "570015a8ad26a844bbd0e696a02f5f52",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 100358,
"upload_time": "2024-08-18T08:27:04",
"upload_time_iso_8601": "2024-08-18T08:27:04.413372Z",
"url": "https://files.pythonhosted.org/packages/51/8b/15834258853267924b749e4f604f7112747e3ee061b22fb396c1c1009b51/OnlySnarf-4.7.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7485138d466db91e8eea603d195c8401d3f2689f9520aeb4a161fa0fa83cd6ec",
"md5": "5dc9e96cfdd2400e6e6b201cfdef50c0",
"sha256": "51bb27b6145e24f2743e8d285941b1c523c7dfd520d5ed79234b7e8b430c4520"
},
"downloads": -1,
"filename": "onlysnarf-4.7.2.tar.gz",
"has_sig": false,
"md5_digest": "5dc9e96cfdd2400e6e6b201cfdef50c0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 91625,
"upload_time": "2024-08-18T08:27:06",
"upload_time_iso_8601": "2024-08-18T08:27:06.211151Z",
"url": "https://files.pythonhosted.org/packages/74/85/138d466db91e8eea603d195c8401d3f2689f9520aeb4a161fa0fa83cd6ec/onlysnarf-4.7.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-18 08:27:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "skeetzo",
"github_project": "onlysnarf",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "onlysnarf"
}