# MISSISSIPPIAN (`gold_zygote_it6/mississippian`) Actor

- **URL**: https://apify.com/gold\_zygote\_it6/mississippian.md
- **Developed by:** [Edeon Hudson](https://apify.com/gold_zygote_it6) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## X (Twitter) Auto Liker & Commenter Actor

An automated Apify Actor that monitors your X (Twitter) feed and automatically engages with posts from specified target handles. It goes beyond simple liking by integrating **DeepSeek** for AI-generated contextual comments and **Gemini 1.5 Flash** for understanding images and videos attached to tweets.

### Features

- **Multi-Engagement Support**: Perform Likes (default 40), Retweets, Bookmarks, and Shares (copies link). Engagements are evenly spaced out based on their target counts.
- **DeepSeek AI Commenting**: Leverages an active DeepSeek Web UI session to automatically generate highly contextual and human-like comments without API costs.
- **Gemini Media Parsing**: Automatically fetches images and downloads videos using `yt-dlp` to pass them to Gemini 1.5 Flash, which feeds a visual description back into your DeepSeek prompt.
- **Handle Matching**: Case-insensitive matching of X handles (`@user1`, `user2`, etc.).
- **Easy Authentication**: Input your `auth_token` and `ct0` for X, and `ds_session_id` and `aws-waf-token` for DeepSeek. Supports raw JSON imports from extensions like EditThisCookie.

### Project Structure

```
apify-x-liker-actor/
├── .actor/
│   ├── actor.json
│   └── input_schema.json
├── src/
│   └── main.js
├── Dockerfile
├── package.json
└── README.md
```

### Running Locally

1. Install dependencies:
   ```bash
   npm install
   ```

2. Note: If running locally, you must have `ffmpeg` and `yt-dlp` installed on your host machine for video parsing to work.

3. Run the Actor locally:
   ```bash
   npx apify run
   ```

### Input Configuration

Inputs can be set in `.actor/INPUT.json` when running locally or via the Apify Console.

```json
{
  "targetUsernames": "@elonmusk\nX",
  "useRawJson": false,
  "xAuthToken": "your_auth_token",
  "xCt0Token": "your_ct0_csrf_token",
  "deepseekSessionId": "your_ds_session_id",
  "deepseekAwsWaf": "your_aws_waf_token",
  "deepseekChatUrl": "https://chat.deepseek.com/a/chat/s/...",
  "geminiApiKey": "your_gemini_api_key",
  "likesCount": 40,
  "retweetsCount": 10,
  "commentsCount": 10,
  "bookmarksCount": 5,
  "sharesCount": 5,
  "headless": false
}
```

# Actor input Schema

## `targetUsernames` (type: `string`):

List of X handles to match against (one username per line). Supports bulk pasting.

## `limitOneEngagementPerUserPerRun` (type: `boolean`):

If enabled, the actor will only engage with a target username once per run. If it sees another post by the same user, it will skip it and keep scrolling.

## `geminiAccounts` (type: `array`):

Add Google accounts for Gemini comment generation. Click '+ Add' to add a new account line with Email, Password, and Chat URL/ID. Additional accounts act as automatic fallbacks if one stalls.

## `geminiApiKey` (type: `string`):

API key for Gemini Flash (used for analyzing images, videos, and GIFs). Leave blank if you want the actor to skip media-heavy posts.

## `useRawJson` (type: `boolean`):

Toggle on if you want to paste the full exported JSON array directly.

## `xAuthToken` (type: `string`):

Paste your 'auth\_token' cookie from x.com

## `xCt0Token` (type: `string`):

Paste your 'ct0' CSRF cookie from x.com

## `rawCookiesJson` (type: `string`):

Alternative: Paste the entire JSON array exported from EditThisCookie or Cookie-Editor

## `likesCount` (type: `integer`):

Maximum number of likes before the actor cleanly terminates. (Mandatory)

## `retweetsCount` (type: `integer`):

Number of retweets to perform during the run.

## `commentsCount` (type: `integer`):

Number of comments to perform during the run.

## `bookmarksCount` (type: `integer`):

Number of bookmarks to perform during the run.

## `sharesCount` (type: `integer`):

Number of shares to perform during the run.

## `dailyMaxLikesPerUsername` (type: `integer`):

Maximum number of likes to perform on any single target username per day (WAT). Resets at midnight Lagos time.

## `dailyMaxCommentsPerUsername` (type: `integer`):

Maximum number of comments to post on any single target username per day (WAT).

## `dailyMaxRetweetsPerUsername` (type: `integer`):

Maximum number of retweets to perform on any single target username per day (WAT).

## `dailyMaxSharesPerUsername` (type: `integer`):

Maximum number of share (copy-link) actions on any single target username per day (WAT). Leave blank to inherit the Likes cap.

## `dailyMaxBookmarksPerUsername` (type: `integer`):

Maximum number of bookmarks on any single target username per day (WAT). Leave blank to inherit the Likes cap.

## `headless` (type: `boolean`):

Run browser in headless mode. Turn off (false) to run headful browser (recommended for account safety).

## `braveExecutablePath` (type: `string`):

Optional: Path to local Brave binary when running locally on your PC. Leave blank on Apify platform.

## `userDataDir` (type: `string`):

Optional: Path to local persistent profile folder when running locally on your PC. Leave blank on Apify platform.

## `supabaseUrl` (type: `string`):

Your Supabase project URL (e.g. https://xxxxxxxxxxxx.supabase.co). Found in: Supabase Dashboard → Project Settings → API → Project URL.

## `supabaseKey` (type: `string`):

Your Supabase API key. Use the 'anon public' key for basic use, or the 'service\_role' key to bypass RLS. Found in: Supabase Dashboard → Project Settings → API → Project API Keys.

## `proxyConfiguration` (type: `object`):

Select proxies to route browser traffic through. Use Apify Proxy (residential or datacenter) or provide custom proxy URLs.

## `telegramChatId` (type: `string`):

Your Telegram Chat ID for receiving 2FA alerts and error notifications. To get your ID, message your bot on Telegram and type /start.

## Actor input object example

```json
{
  "targetUsernames": "@elonmusk\nX",
  "limitOneEngagementPerUserPerRun": true,
  "geminiAccounts": [
    {
      "email": "yourEmail@gmail.com",
      "password": "yourPassword",
      "chatUrl": "https://gemini.google.com/app/YOUR_CHAT_ID"
    }
  ],
  "useRawJson": false,
  "likesCount": 40,
  "retweetsCount": 0,
  "commentsCount": 0,
  "bookmarksCount": 0,
  "sharesCount": 0,
  "dailyMaxLikesPerUsername": 21,
  "dailyMaxCommentsPerUsername": 7,
  "dailyMaxRetweetsPerUsername": 3,
  "headless": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "telegramChatId": ""
}
```

# Actor output Schema

## `results` (type: `string`):

The dataset containing engagement logs

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("gold_zygote_it6/mississippian").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("gold_zygote_it6/mississippian").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call gold_zygote_it6/mississippian --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gold_zygote_it6/mississippian"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/W30RfqBbjeEPMijtg/builds/qAKiLfOyovUEqyLyg/openapi.json
