{"id":26981489,"url":"https://github.com/bm-github/x-analyser","last_synced_at":"2025-07-04T12:34:21.834Z","repository":{"id":273130946,"uuid":"918789648","full_name":"bm-github/x-analyser","owner":"bm-github","description":"Analyse X posts with LLM","archived":false,"fork":false,"pushed_at":"2025-01-19T13:55:29.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T15:45:54.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bm-github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-18T21:22:48.000Z","updated_at":"2025-01-19T13:55:30.000Z","dependencies_parsed_at":"2025-01-18T22:35:45.018Z","dependency_job_id":null,"html_url":"https://github.com/bm-github/x-analyser","commit_stats":null,"previous_names":["bm-github/x-analyser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bm-github/x-analyser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm-github%2Fx-analyser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm-github%2Fx-analyser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm-github%2Fx-analyser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm-github%2Fx-analyser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bm-github","download_url":"https://codeload.github.com/bm-github/x-analyser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm-github%2Fx-analyser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263542603,"owners_count":23477455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-03T15:36:15.920Z","updated_at":"2025-07-04T12:34:21.816Z","avatar_url":"https://github.com/bm-github.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter/X Analyzer\n\nCLI tool for analyzing Twitter/X user activity using OpenRouter API and LLMs.\n\n## Prerequisites\n\n- Python 3.8+\n- Twitter/X API Bearer Token\n- OpenRouter API Key\n\n## Setup\n\n1. Create a `keys` directory two levels up from the script:\n```bash\nmkdir -p ../../keys\n```\n\n2. Add API keys:\n```bash\necho \"your-twitter-bearer-token\" \u003e ../../keys/x-token.txt\necho \"your-openrouter-key\" \u003e ../../keys/key-openrouter.txt\n```\n\n## Installation\n\n```bash\npip install tweepy requests rich\n```\n\n## Usage\n\nRun the analyzer:\n```bash\npython x-analyser-openrouter.py\n```\n\nThe tool will:\n1. Prompt for a Twitter handle\n2. Fetch recent tweets (cached for 24 hours)\n3. Allow interactive questions about the user's tweets\n4. Generate AI-powered analysis using OpenRouter\n\n## Features\n\n- Tweet caching (24-hour expiry)\n- Rich CLI interface\n- Interactive Q\u0026A about tweet patterns\n- Configurable LLM model selection\n- Excludes retweets and replies\n\n## Error Handling\n\n- Validates API keys on startup\n- Handles rate limits and API errors\n- Provides clear error messages in the CLI\n\n## Dependencies\n\n- `tweepy`: Twitter API client\n- `requests`: HTTP client\n- `rich`: Terminal formatting\n- `pathlib`: File operations\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbm-github%2Fx-analyser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbm-github%2Fx-analyser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbm-github%2Fx-analyser/lists"}