Skip to content

Commit

Permalink
User-Agent advice in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
somespecialone committed Nov 10, 2023
1 parent df66361 commit c6f929a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Dmytro Tkachenko
Copyright (c) 2022-2023 Dmytro Tkachenko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions docs/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ client = SteamClient(
112233, # steam id(64) or account id(32)
shared_secret="shared secret",
identity_secret="identity secret",
user_agent="my user agent :)"
)

await client.login()
Expand All @@ -20,6 +21,11 @@ await client.login()
??? info "Client args"
Client will retrieve needed data from `steam` if you not pass it. Details [there](client.md#init--login).

???+ tip "User-Agent"
[Aiohttp](https://docs.aiohttp.org/en/stable/) uses its own `User-Agent` header by default.
It is strongly recommended to replace it with your own.
You can easily get one from [randua.somespecial.one](https://randua.somespecial.one).

### Do work

```python
Expand Down

0 comments on commit c6f929a

Please sign in to comment.