Selenium driver that posts to gab.
Project description
Gabposter
Posts to a gab account text and image.
Install
python -m pip install gabposter
Api
from gabposter import gab_post, gab_test
USER = "gabusername"
PASS = "gabpassword"
FILE_JPG = "myfile.jpg"
assert gab_test(), "Webdriver doesn't work on your system"
gab_post(USER, PASS, "test", jpg_path=FILE_JPG)
Tests
Just simply run tox
at the command line and everything should be tested. You may need to install tox
with python -m pip tox
.
Changes
- 1.2.0: Headless feature now implemented for chrome/brave. Experimental firefox support. Driver can now be selected as chrome/brave/firefox.
- 1.1.0: Driver now uses chrome by default. Logic improved to work across browsers.
- 1.0.6: Fix bug where some paths used a different driver directory
- 1.0.5: Stash downloaded selenium driver in app directory rather than current, to improve app bundling.
- 1.0.4: Adds gab_test() for testing that connecting to gab works using the webdriver.
- 1.0.3: Fixed a bug where posts would sometimes not go through, due to the browser exiting too quickly.
- 1.0.0: Initial code submit
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
gabposter-1.2.0.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file gabposter-1.2.0.tar.gz
.
File metadata
- Download URL: gabposter-1.2.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa7d41c3333239618db9877dbf834e108209475ed0ee3e9384342643244dcb82 |
|
MD5 | 2413dd25b81c974e645e20dc794740d7 |
|
BLAKE2b-256 | a5e4b63d9716e47b90b2b1ade30052ec04215c5ba1ba0d73514f47691992712a |
File details
Details for the file gabposter-1.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: gabposter-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c562a19e4029cf89c00d95383b855efa527d2bfb39d3249ee729e69f9025f075 |
|
MD5 | b51c132cf1914517e23ef04e50d300cc |
|
BLAKE2b-256 | a7d701dd43c23f53243c6982f33729a5b33c3edcc66ba85ebb9d086ffc95df4e |