You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importrequestsimportre# URL of the raw contenturl="https://raw.githubusercontent.com/pagefaultgames/pokerogue/main/src/data/trainer-config.ts"# Send a GET request to the URL and get the contentresponse=requests.get(url)
# Extract the JavaScript codejs_code=response.text# Extract TrainerType entries using regular expressionstrainer_entries=re.findall(r"\[TrainerType\.(.*?)\]:", js_code)
# Print out the TrainerType entriesforentryintrainer_entries:
print(entry)
We only need to sanitize data. And do this for all types from data.json
The text was updated successfully, but these errors were encountered:
Issue #48
Duplicate of #19 kinda
We need to do this for
--
Example part in source code
Example Code to Fetch data
We only need to sanitize data. And do this for all types from data.json
The text was updated successfully, but these errors were encountered: