Metadata-Version: 2.1
Name: zf-xanthus
Version: 0.1.4
Summary: xanthus generates weekly updates from X bookmarks
Author: Zeff Muks
Author-email: zeffmuks@gmail.com
License: Proprietary
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: backports.tarfile ==1.2.0
Requires-Dist: browsercookie ==0.7.9
Requires-Dist: greenlet ==3.0.3
Requires-Dist: importlib-metadata ==8.2.0
Requires-Dist: jaraco.classes ==3.4.0
Requires-Dist: jaraco.context ==5.3.0
Requires-Dist: jaraco.functools ==4.0.2
Requires-Dist: keyring ==25.3.0
Requires-Dist: loguru ==0.7.2
Requires-Dist: lz4 ==4.3.3
Requires-Dist: more-itertools ==10.3.0
Requires-Dist: playwright ==1.45.1
Requires-Dist: pycryptodome ==3.20.0
Requires-Dist: pyee ==11.1.0
Requires-Dist: typing-extensions ==4.12.2
Requires-Dist: zipp ==3.19.2

# Xanthus

[![PyPI version](https://badge.fury.io/py/zf-xanthus.svg)](https://badge.fury.io/py/zf-xanthus)

![Xanthus](https://zf-static.s3.us-west-1.amazonaws.com/xanthus-logo128.png)</p>

Xanthus is a tool for managing your X (formerly Twitter) feed. It offers the following features:

1. Gather bookmarks from your X account
2. Gather others reaction on your bookmarks
3. Generate threads from the bookmarks

```bash
pip install zf-xanthus
```

The following features are coming soon:

1. Analyze your X feed and generate a summary
2. Identify trends in your best performing tweets
3. Generate a weekly summary of your X feed

## Usage

### Gather Bookmarks

```bash
$ xanthus --bookmarks https://x.com/i/bookmarks/{bookmarks_category_id}
```

This will output the list of bookmarks from this week at `bookmarks_YYYY-MM-DD.json`

### Generate Threads

It is recommended to use [Claude 3.5 Sonnet](https://www.anthropic.com/news/claude-3-5-sonnet) for this task.

```text
I will give you the list of weekly updates on Twitter in a JSON format. The primary focus of my account is in the AI domain. Your goal is to provide me the content for a Weekly Update Summary Thread based on the data.

Data (see attached):

Format:

* You will write multiple tweets forming a thread based on the posts above such that the most
important announcement comes on the top
* First post will be a generic announcement posts e.g. "Big updates from X, Y and Z in the A, B,
C categories. Here's what you need to know:"
* You should then output a list of tweets in a twitter thread. Each tweet should summarize an
important update and then provide the link of the relevant tweet e.,g. "Avi just unveiled Friend, an AI wearable designed to combat loneliness by providing constant companionship https://x.com/AviSchiffmann/status/1818284595902922884"
* You should use the last week as a call to action e.g. "Follow @zeffmuks for more updates in X, Y, Z"
```

## [License](./LICENSE)

All Rights Reserved (c) Zeff Muks 2024
