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
File details
Details for the file autofollow-0.1.2.tar.gz
.
File metadata
- Download URL: autofollow-0.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78142c8d11d958377ddc80a8262afcd32a9f860c3478e74504283d39ed5e11ba |
|
MD5 | fefb33656ffbe222e9343d2ab651d119 |
|
BLAKE2b-256 | 45a0b38920c54eedef676d0ad249b0cf7047417179168e39094b66c690fb76a5 |
File details
Details for the file autofollow-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: autofollow-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfa17eee137a64b9414c928a5b573e64a1648b860d974922aae95cc4853fd038 |
|
MD5 | f56b650eb8db3c763bab0d64dedba957 |
|
BLAKE2b-256 | 1f5087a87c4412a2be9ed6188e9f778ed526e68b363e050746046e781c65fd6c |