Skip to main content

League of Legends game updates wrapper and scrapper

Project description

ryze

League of Legends Games Update Unofficial API wrapper. Scraper included for page content.

Installation

  • $ pip install ryze

Example

import json

from ryze import get_game_updates

# get all the game updates page data
game_updates_page = get_game_updates('en-us')

# print the game updates page title
print(game_updates_page.title)

# Updates for LOL start with 'Patch' word, so we filter for it
league_updates = game_updates_page.updates.by_title_name_re(r'^Patch')

# loop over all updates
for update in league_updates:
    with open(f'patches/{update.title}.json', 'w') as f:
        f.write(json.dumps(update.get_full_data().patch.parse_content()))

Endorsement

lcu-driver isn’t endorsed by Riot Games and doesn’t reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends © Riot Games, Inc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ryze-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file ryze-0.0.1.tar.gz.

File metadata

  • Download URL: ryze-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for ryze-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cc77cf756d555522028628991445f39882028b9cad7750d59a37542afc48618d
MD5 26643030a9db31208fafcda644b55ee4
BLAKE2b-256 8082aa1639f2285a4db68f16967cae4f52c9567fbc06be38bde1fb4dbadb744b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page