Skip to main content

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

twAuto-0.3.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twAuto-0.3.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file twAuto-0.3.0.tar.gz.

File metadata

  • Download URL: twAuto-0.3.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for twAuto-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5a601fdc351fb4a77f895b0ae8e294de362e4c9fee54dc04bb854ad75b5f2612
MD5 9deb7876444902ec1151b6706f72527c
BLAKE2b-256 12b7b43ac6b15ddffb33ee849c6acc13591445aa3e02621323fb7ba0227dda26

See more details on using hashes here.

File details

Details for the file twAuto-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: twAuto-0.3.0-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

Hashes for twAuto-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b9dba5b63dade0c6936239960de11f24057d476b22c7db82bf12d3490d5aadc
MD5 8ba378c338692bc59a2b25215248bcda
BLAKE2b-256 3060a4a4e1b500ee95345b252a43aa39beefce04ed70ba52069049752bc8ff97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page