You can easily search play-time of specific game you want to know by using this package.
pip install HowLongToBeat-Python-API
from hltbapi import HtmlScraper
res = HtmlScraper().search(name='last of us') #res contains following data of games containing 'last of us'
for entry in res:
print('===================================')
print(entry.detailId)
print(entry.gameName)
print(entry.description)
print(entry.playableOn)
print(entry.imageUrl)
print(entry.timeLabels)
print(entry.gameplayMain)
print(entry.gameplayMainExtra)
print(entry.gameplayCompletionist)
print('===================================')
- JaeguKim
This project is licensed under the MIT License - see the LICENSE.md file for details