Skip to content

Commit b31a4d3

Browse files
lanbytescursoragent
andcommitted
Add PyPI publishing config and package README.
Keep Speakeasy publish wired for later and give pip a short description file. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent fb03eae commit b31a4d3

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.speakeasy/workflow.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ targets:
1010
python:
1111
target: python
1212
source: x-api-scraper
13+
publishing:
14+
pypi:
15+
token: $PYPI_TOKEN
1316
codeSamples:
1417
registry:
1518
location: registry.speakeasyapi.dev/twexapi/sdk/x-api-scraper-python-code-samples

README-PYPI.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# x_api_scraper
2+
3+
Python SDK for Twitter search, followers, DMs, communities, and X automation. Built for [TwexAPI](https://twexapi.io). Not affiliated with X Corp.
4+
5+
- Docs: https://docs.twexapi.io
6+
- Source: https://github.com/twexapi-dev/x-api-scraper-python
7+
- Dashboard: https://twexapi.io/dashboard
8+
9+
```python
10+
import os
11+
from x_api_scraper import XapiScraper
12+
13+
with XapiScraper(bearer_auth=os.environ["X_API_SCRAPER_KEY"]) as client:
14+
res = client.search.advanced(
15+
search_terms=["from:elonmusk"],
16+
sort_by="Latest",
17+
next_cursor="",
18+
)
19+
print(res)
20+
```

0 commit comments

Comments
 (0)