Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wooldoughnut310/xboxgamertag
Python module to get data from www.xboxgamertag.com
https://github.com/wooldoughnut310/xboxgamertag
data gamertag html python3 requests xbox
Last synced: 21 days ago
JSON representation
Python module to get data from www.xboxgamertag.com
- Host: GitHub
- URL: https://github.com/wooldoughnut310/xboxgamertag
- Owner: WoolDoughnut310
- Created: 2019-07-12T17:53:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T10:44:53.000Z (over 5 years ago)
- Last Synced: 2024-11-29T13:20:00.117Z (24 days ago)
- Topics: data, gamertag, html, python3, requests, xbox
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xboxgamertag
Python module to get data from www.xboxgamertag.com## Usage
#### Installation
`pip install xboxgamertag`
#### Simple example
```python
from xboxgamertag import gamertaguser = Gamertag('WoolDoughnut310') # My gamertag is WoolDoughnut310, by the way
# Get my amount of gamerscore
print(user.gamerscore)# If you want to see how many games I have played in total
print(user.total_games_played)
```
```python
class GamertagNotFoundError(Exception):
pass
```
class
xboxgamertag.Gamertag
(
name
)
Initializes the Gamertag class and returns an object
BASE_URL = "https://www.xboxgamertag.com"
games_played
¶
All the games the user has played
Returns list ofPlayedGame
objects
class
xboxgamertag.PlayedGame
(
tr
)
Initializes the PlayedGame class and returns an object
total_earned_gamerscore
¶
The amount of gamerscore the user has achieved in the game in total
Returnsint
total_unlocked_achievements
¶
The total amount of achievements unlocked by the user in that game
Returnsint