imports from osgameclones

This commit is contained in:
Trilarion
2019-08-21 10:17:40 +02:00
parent afaa1bba84
commit 42dee8c7e8
71 changed files with 1527 additions and 295 deletions

View File

@ -0,0 +1,17 @@
"""
Imports game details from libregamewiki by scraping the website, starting from https://libregamewiki.org/Category:Games
Also parse rejected games (https://libregamewiki.org/Libregamewiki:Rejected_games_list) and maybe https://libregamewiki.org/Libregamewiki:Suggested_games
"""
import requests
import re
if __name__ == "__main__":
regex_games = re.compile(r"<li><a href=\"\/(.+?)\".*?>(.+?)<\/a><\/li>") # url part, name
# read base url
base_url = 'https://libregamewiki.org/Category:Games'
text = requests.get(base_url).text
print(text)