Help us shape the future of Go! Take the 2026 Go Developer Survey

xAutoLiker

command module
v0.0.0-...-6f38aa1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 8 Imported by: 0

README ยถ

X Auto Liker

An automated tool for liking posts on X (formerly Twitter) with configurable settings and session management.

Features

  • ๐Ÿ‘ Automatically likes posts in your timeline
  • โš™๏ธ Highly configurable settings (delays, refresh cycles, timeouts)
  • ๐Ÿ”’ Secure session management
  • ๐Ÿ“Š Real-time statistics
  • ๐ŸŒ Supports both visible and headless browser modes
  • ๐Ÿ’พ Persistent sessions for quick reuse

Installation

go install github.com/mirzaaghazadeh/xAutoLiker@latest

This will install xAutoLiker to your $GOPATH/bin directory. Make sure your $GOPATH/bin is added to your PATH.

Usage

Basic Command
xAutoLiker -username "your_username" -password "your_password"
Available Settings
  1. Required:

    • -username: Your X (Twitter) username/email
    • -password: Your X (Twitter) password
  2. Optional with defaults:

    • -headless: Run in headless mode without browser window (default: false)
    • -refresh: Refresh page every N cycles (default: 5, 0 to disable)
    • -like-delay: Delay between likes (default: 1s)
    • -scroll-delay: Delay after scrolling (default: 2s)
    • -timeout: Total session duration (default: 5m)
Example Commands
# Run in headless mode with fast liking
xAutoLiker -username "user" -password "pass" -headless -like-delay 500ms

# Visible browser with longer delays
xAutoLiker -username "user" -password "pass" -refresh 0 -like-delay 2s

# Long session in headless mode
xAutoLiker -username "user" -password "pass" -headless -timeout 2h -like-delay 1s

Session Management

Sessions are stored in ~/.xautoliker/sessions/[username]. This allows for:

  • Faster subsequent logins
  • Persistent authentication
  • Multiple account support

Statistics

The tool provides real-time statistics:

  • Total likes count
  • Session duration
  • Like rate (likes per minute)
  • Stats are shown every 10 likes and after page refreshes

Requirements

  • Go 1.21 or higher
  • Chrome/Chromium browser installed

Security Note

  • Your credentials are never stored, only browser session data is saved
  • Sessions are stored securely in your home directory
  • Run in headless mode for background operation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL