Metadata-Version: 2.1
Name: twAuto
Version: 0.3.0
Summary: TwAuto is a library for testing your code on pre-Twitter API application stage.
Home-page: https://github.com/EKOzkan/twAuto
Author: Ekin Kagan Ozkan
Author-email: ekinkagan@gmail.com
License: MIT
Description-Content-Type: text/markdown
License-File: LICENCE.MD
Requires-Dist: selenium
Requires-Dist: bs4


  

# 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:**
```bash
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.
```bash
https://chromedriver.chromium.org/downloads
```

## Functions
**â€¢ Import:**
```python
import twAuto
```

**â€¢ Configure:**
```python
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.
```python
tw.start()
```

**â€¢ Login:** Logs in to the Twitter account
```python
tw.login()
```

**â€¢ Like:** Likes tweet in the given url
```python
tw.like(url="")
```

**â€¢ Reply:** Replies to the tweet in the given url with given text.
```python
tw.reply(url="", text="")
```

**â€¢ Tweet:** Tweets the text and image if given.
```python
tw.tweet(text="",imgpath="")
```

**â€¢ Quote Tweet:** Quotes the tweet in the given url with the given text.
```python
tw.quoteTweet(url="", text="")
```

**â€¢ Retweet:** Retweets the tweet in the given url.
```python
tw.retweet(url="")
```

**â€¢ Logout:** Logs out from current Twitter account and deletes the cookies file.
```python
tw.logout()
```

**â€¢ Quit/Close:** Ends the session, closes the selenium driver application
```python
tw.close()
```
