Skip to content

Commit a910822

Browse files
committed
docs + better import
1 parent b6ce933 commit a910822

3 files changed

Lines changed: 54 additions & 14 deletions

File tree

.idea/workspace.xml

Lines changed: 24 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11
# A snapchat API (webdriver)
2+
## Features
3+
### Connect to snapchat
4+
5+
```python
6+
import snappy
7+
import selenium.webdriver
8+
9+
snapchat_c = snappy.main.SnapchatCredentials("<your username>", "<your password>")
10+
11+
client = snappy.main.SnapchatClient(selenium.webdriver.Edge(), snapchat_c)
12+
```
13+
14+
### List conversations
15+
16+
```python
17+
client.listConversations()
18+
```
19+
20+
### Get messages list on a conversation
21+
22+
```python
23+
client.getMessagesBacklog(conversation)
24+
```
25+
26+
### Send a message to a conversation
27+
28+
```python
29+
client.sendMessage(conversation, message, cool_down=True)
30+
```

src/snappy/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from main import SnapchatClient, SnapchatCredentials

0 commit comments

Comments
 (0)