Skip to main content

A python library to unfollow user on twitter automatically.

Project description

Twitter-Auto-Unfollow-Bot is a python library to unfollow user on twitter using browser automation. It currently runs only on windows.

Example

In this example we first import library, then we login with cookies and then unfollow a user.

from twitter_auto_unfollow_bot import *
true=True;false=False
list_of_cookies=[
{
    "domain": ".twitter.com",
    "expirationDate": 1676520136,
    "hostOnly": false,
    "httpOnly": false,
    "name": "_ga",
    "path": "/",
    "sameSite": "unspecified",
    "secure": false,
    "session": false,
    "storeId": "0",
    "value": "GA1.2.1110230825266.1610349768",
    "id": 1
}]
#please replace the above sample cookies with your cookies, can see below link of how to fetch cookies
twitter.login_cookie(cookies=list_of_cookies)
twitter.unfollow(profile_url='https://twitter.com/LinkedIn')

This module depends on the following python modules

BotStudio

bot_studio is needed for browser automation. As soon as this library is imported in code, automated browser will open up. Complete documentation for Twitter Automation available here

Installation

pip install twitter-auto-unfollow-bot

Import

from twitter_auto_unfollow_bot import *

Login with credentials

twitter.login(username="twitter username",password="twitter password")

Login with cookies

twitter.login_cookie(cookies=list_of_cookies)

Unfollow user

twitter.unfollow(profile_url='profile link of user')

Send Feedback to Developers

bot_studio.send_feedback(feedback="Need help with this ......")

Cookies

To login with cookies Edit this Cookie Extension can be added to browser. Please check this link how to get cookies to login to your twitter.

Contact Us

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

twitter-auto-unfollow-bot-1.0.0.tar.gz (2.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page