TwAuto is a library for testing your code on pre-Twitter API application stage.
Project description
twAuto - Twitter Automation Test Tool 🦆
twAuto is a library for testing your code on pre-Twitter API application stage. This library can do "Tweeting", "Retweeting", "Replying", "Tweet Quoting", "Tweet Liking" without any API requirements using Selenium.
###Only For Testing Purposes!!!###
Requirements
-
Python 3.6;
-
beautifulsoup4;
-
selenium
Installation
Pip:
pip3 install twAuto
After Pip: Download chromium driver from https://chromedriver.chromium.org/downloads and place the chromedriver.exe file to same place as your code.
https://chromedriver.chromium.org/downloads
Functions
- Import:
import twAuto
- Configure:
tw = twAuto.twAuto(
username="Your Twitter Username",
email="Your Twitter E-Mail",
password="Your Twitter Password",
headless=True/False)
- Start: Start functions runs the selenium driver.
tw.start()
- Login: Logs in to the Twitter account
tw.login()
- Like: Likes tweet in the given url
tw.like(url="")
- Reply: Replies to the tweet in the given url with given text.
tw.reply(url="", text="")
- Tweet: Tweets the text and image if given.
tw.tweet(text="",imgpath="")
- Quote Tweet: Quotes the tweet in the given url with the given text.
tw.quoteTweet(url="", text="")
- Retweet: Retweets the tweet in the given url.
tw.retweet(url="")
- Logout: Logs out from current Twitter account and deletes the cookies file.
tw.logout()
- Quit/Close: Ends the session, closes the selenium driver application
tw.close()
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twAuto-0.3.1.tar.gz.
File metadata
- Download URL: twAuto-0.3.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c38082138d92618df10334399336ab5133e1e196b4ed00c967c6c927e42722e9
|
|
| MD5 |
08ff40b9880149a3109bbe8e00a7750e
|
|
| BLAKE2b-256 |
fc2c045ca04b779d9a55af50f0ee3f03bb150c1a47914c1019a11c3d1069650b
|
File details
Details for the file twAuto-0.3.1-py3-none-any.whl.
File metadata
- Download URL: twAuto-0.3.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4c5c6f12693d8f148bd0f8abb9d3ebb5825904804a24cff590cae8daaaccb7c
|
|
| MD5 |
2fb3ec718d27c056794addbd84856d59
|
|
| BLAKE2b-256 |
5497213ee3fbda6b2f7c25022b0928e572e10b8e2a4adf1a8f333e4059c6e020
|