twitter-follower-scraper 1.0.15
A python library to scrape twitter followers.
License: Apache License 2.0
Keywords: twitter tweet followers python bot_studio automation search scraper scrape follower following profile posts like comment

Twitter follower scraper is a python library to scrape twitter followers, using browser automation. 
It currently runs only on windows.

### Twitter Login With Cookies
* In this example we first import library, then we fetched data using simple function. 
* Replace below sample cookies with your **cookies**.
```sh
from twitter_follower_scraper import *
true=True;false=False
list_of_cookies=[
{
    "domain": ".twitter.com",
    "expirationDate": 1676463230,
    "hostOnly": false,
    "httpOnly": false,
    "name": "_ga",
    "path": "/",
    "sameSite": "unspecified",
    "secure": false,
    "session": false,
    "storeId": "0",
    "value": "GA1.2.1029585723.1610264105",
    "id": 1
}]
response =twitter.login_with_cookies(cookies=list_of_cookies)
```

### Twitter Login With Email and Password

* In this example we first import library, then we fetched data using simple function. 
* Replace **email_address** and **password** with your credentials.
```sh
from twitter_follower_scraper import *
response =twitter.login(text="email_address",password="password")
```

### Scrape Twitter Followers
* In this example we will scrape followers in the twitter account. 
* Replace the **url** with **your url**. 
```sh
from twitter_follower_scraper import *
response =twitter.login(text="email_address",password="password")
response =twitter.follower_scrape(profile_url="url")
```

### Response Data
```json
      {
        "name": "Yogi Adityanath",
        "username": "@myogiadityanath",
        "profile_link": "/myogiadityanath",
        "bio": "\u092e\u0941\u0916\u094d\u092f\u092e\u0902\u0924\u094d\u0930\u0940 (\u0909\u0924\u094d\u0924\u0930 \u092a\u094d\u0930\u0926\u0947\u0936); \u0917\u094b\u0930\u0915\u094d\u0937\u092a\u0940\u0920\u093e\u0927\u0940\u0936\u094d\u0935\u0930, \u0936\u094d\u0930\u0940 \u0917\u094b\u0930\u0915\u094d\u0937\u092a\u0940\u0920; \u0938\u0926\u0938\u094d\u092f, \u0935\u093f\u0927\u093e\u0928 \u092a\u0930\u093f\u0937\u0926, \u0909\u0924\u094d\u0924\u0930 \u092a\u094d\u0930\u0926\u0947\u0936; \u092a\u0942\u0930\u094d\u0935 \u0938\u093e\u0902\u0938\u0926 (\u0932\u094b\u0915\u0938\u092d\u093e-\u0932\u0917\u093e\u0924\u093e\u0930 5 \u092c\u093e\u0930) \u0917\u094b\u0930\u0916\u092a\u0941\u0930, \u0909\u0924\u094d\u0924\u0930 \u092a\u094d\u0930\u0926\u0947\u0936"
      }
```

#### BotStudio
[bot_studio](https://pypi.org/project/bot_studio/) is needed for browser automation. As soon as this library is imported in code, automated browser will open up in which it first logins twitter and then scrapes twitter followers.

### Installation
```sh
pip install twitter-follower-scraper
```

### Import
```sh
from twitter_follower_scraper import *
```
### Login with credentials
```sh
twitter.login(text="email_address",password="password")
```

### Login with cookies
```sh
twitter.login_with_cookies(cookies=list_of_cookies)
```

### Get Twitter followers
```sh
response =twitter.follower_scraper(profile_url="url")
data=response['body']
```

### Run bot on cloud
You can run bot on [cloud](https://datakund.com/products/twitter-com-scraper?_pos=1&_sid=bf64afd4f&_ss=r).

### Send Feedback to Developers
```sh
bot_studio.send_feedback(feedback="Need help with this ......")
```

### Cookies
To login with cookies [Edit this Cookie Extension](https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en) can be added to browser. Please check [this](https://abhishek-chaudhary.medium.com/how-to-get-cookies-of-any-website-from-browser-22b3d6348ed2) link how to get cookies to login to your amazon.

### Contact Us
* [Telegram](https://t.me/datakund)
* [Website](https://datakund.com)