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.2: Now uses
open-webdriver
to handle the setup of webdriver. - 1.2.1: Now works on windows/linux. Had to switch to
webdriver-setup
. Github platform unit tests now run on every update. - 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.5.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file gabposter-1.2.5.tar.gz
.
File metadata
- Download URL: gabposter-1.2.5.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 699e2fa006802ab0c64b970292ef60c92ad0b99b6913c69ff8ea93bd9395a5bc |
|
MD5 | 81ef4736720da5229359af1bb034ad1b |
|
BLAKE2b-256 | 4af22076bb66617e65d59cab6ebad71f3d674840822a0ba8768fd83609105abb |
File details
Details for the file gabposter-1.2.5-py2.py3-none-any.whl
.
File metadata
- Download URL: gabposter-1.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813c849603d9e5cadb70dd3a529108bec210b0ccbc384ca6de168cb0f5eed3f8 |
|
MD5 | a25b36cbc34d27f51d3f3efc1943d2c3 |
|
BLAKE2b-256 | ff724403d0ec9d2a47a9f9560ef60434cfff35617781e5354a48beed4ada9e4e |