from psstore4ru.core.scraping_routines.game_page import PS4Game
game = PS4Game(region_code="EP0002-CUSA23470_00-CB4STANDARD00001")
print(game.as_json())
from psstore4ru.core.scraping_routines.game_page import PS4Game
game = PS4Game(region_code="EP0002-CUSA23470_00-CB4STANDARD00001")
print(game.as_dict())
print(game.as_yaml())
from psstore4ru.core.deprecated import PSStore
def get_all_free_to_play_games():
"""
A call to method
PSStore().get_f2p_games_links()
returns a list of CUSA codes corresponding
to Free-to-Play games on the PS Store,
e.g ['EP6261-CUSA23678_00-OSRELSIEEGENSHIN', 'EP8062-CUSA17849_00-0190589937083212', ...]
"""
cusa_codes = PSStore().get_f2p_games_links()
for code in cusa_codes:
game = PS4Game(region_code=code)
print(game.as_yaml())
from psstore4ru.core.scraping_routines.game_page import PS4Game
game = PS4Game(url="https://store.playstation.com/ru-ru/product/EP0002-CUSA23470_00-CB4STANDARD00001")
print(game.as_dict())
from psstore4ru.core.asynchronous import PSStore
from psstore4ru.core.scraping_routines.game_page import PS4Gam
async def get_games_as_dict_fast():
cusa_codes = await PSStore.get_all_games_links(iterations=10)
for code in cusa_codes:
game = PS4Game(region_code=code)
print(game.as_dict())