Skip to content

Commit aa29a21

Browse files
authored
Create ExampleBusinessCard.py
1 parent d0490d1 commit aa29a21

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Example/ExampleBusinessCard.py

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import asyncio
2+
import wuwaimagen
3+
4+
'''
5+
This example allows you to generate a gacha card and calculate your luck.
6+
More examples here: https://github.com/Wuthery/WuWaImaGen.py/tree/main/Example
7+
'''
8+
9+
client = wuwaimagen.ClientWuWa(assets=True)
10+
11+
config = {
12+
"resonator": [1402,"1503", 1404],
13+
"uid": 600329448,
14+
"resonator_art": {
15+
"1402": "https://i.pximg.net/img-master/img/2024/06/17/13/03/36/119719985_p0_master1200.jpg",
16+
"1503":"https://i.pximg.net/img-master/img/2024/05/27/18/09/36/119100858_p0_master1200.jpg"
17+
},
18+
"nickname": "Korzzex",
19+
"screenshot": "https://dotesports.com/wp-content/uploads/2024/05/WuWa.jpg"
20+
}
21+
22+
23+
async def main():
24+
async with client:
25+
data = await client.get_card(
26+
level = 81,
27+
signature= "Did you think I was a programmer?",
28+
config= config
29+
)
30+
31+
data.save("BusinessCardExample.png")
32+
33+
34+
asyncio.run(main())

0 commit comments

Comments
 (0)