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: over 1 year 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T10:44:53.000Z (almost 7 years ago)
- Last Synced: 2025-03-03T12:16:30.606Z (over 1 year 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 gamertag
user = 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 of PlayedGame 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
Returns int
-
total_unlocked_achievements
¶
-
The total amount of achievements unlocked by the user in that game
Returns int