A package for automating interactions on social media platforms like x and GitHub
Project description
AutoFollow
AutoFollow is a Python package for automating interactions on social media platforms like Twitter (X) and GitHub.
Installation
You can install AutoFollow using pip:
pip install autofollow
Usage
Here’s an example of how to use AutoFollow to automate actions on Twitter (X) and GitHub:
from autofollow.agent import AutoFollowAgent
def main():
driver_path = "YOUR_DRIVER_PATH"
profile_path = "YOUR_PROFILE_PATH"
twitter_username = "YOUR_TWITTER_USERNAME"
twitter_password = "YOUR_TWITTER_PASSWORD"
github_username = "YOUR_GITHUB_USERNAME"
github_password = "YOUR_GITHUB_PASSWORD"
url = "https://github.com/orgs/Azure/people"
agent = AutoFollowAgent(
driver_path=driver_path,
profile_path=profile_path,
twitter_username=twitter_username,
twitter_password=twitter_password,
github_username=github_username,
github_password=github_password
)
try:
agent.like_tweets(duration=300)
agent.follow_twitter_users(["https://x.com/jacob_somer_"], duration=300)
agent.follow_github_users(url, page_number=0, duration=300)
finally:
agent.close()
if __name__ == "__main__":
main()
AutoFollowAgent Methods
__init__(self, driver_path, profile_path, github_username=None, github_password=None)
Initializes the AutoFollowAgent.
driver_path
: Path to the ChromeDriver executable. Download ChromeDriver from here.profile_path
: Path to the user profile directory for Chrome. To find this, type "chrome://version" into your Chrome browser's address bar, and look for the "Profile Path" variable.github_username
(optional): GitHub username for authentication.github_password
(optional): GitHub password for authentication.
like_tweets(duration=300)
Likes tweets on the user's feed for the specified duration.
follow_twitter_users(users, duration=300)
Follows the specified Twitter (X) users for the specified duration.
follow_github_users(url, page_number=0, duration=300)
Follows users on GitHub starting from the specified page number for the specified duration.
Running Tests
To run the tests for this package, use the unittest
framework:
python -m unittest discover tests
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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
Hashes for autofollow-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b459b33a6eb7f9993c5c9d27e5a05a179c36c63a01690140dacfbb7eaad26ec4 |
|
MD5 | c41b515af5375722f8cfa627d778896b |
|
BLAKE2b-256 | 8bfdc18328b2e6d34f0de0c78dbff1f8d32d611c7c5e28416df947b793aead21 |