This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Dominik Plewa", | |
"label": "Full Stack Developer | Java | React.js", | |
"picture": "https://github.com/c0deful.png", | |
"email": "dominik@codeful.it", | |
"phone": "", | |
"website": "", | |
"summary": "", | |
"location": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, urllib.request, urllib.parse | |
# API url can be found in WHU Library JS source: | |
# https://warhammerunderworlds.com/wp-content/themes/gw-shadespire/library/js/main.js?ver=5.3 | |
CARDS_JSON_URL = 'https://warhammerunderworlds.com/wp-json/wp/v2/cards/?per_page=300&lang=ENG' | |
opener = urllib.request.build_opener() | |
# urllib is banned on the server, so provide an innocent user agent | |
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (X11; U; Linux i686) Gecko/20071127 Firefox/2.0.0.11')] |