This module utilizes a Node.js web scraping approach to fetch data from the Clash Royale API. The retrieved data is in JSON format, allowing users to easily customize the content they desire. Here's a usage example:
https://xiang511.com/hydromechanics/TCRS.html
Node.js
Visual studio code
- Player personal information
- Local ladder ranking information
- Clan information
- Global ladder ranking information
- Go to ClashRoyale
- Log in and click My Account (top right corner)
- Click "Create New KEY" =>
The official needs your IP address, remember to check your IP first
- Save your token (you will need it later)
- Okay, we’re all set. Let’s start!
-
Fork this repo or use
https://github.com/Xiang511/FetchCRAPI-Node.js.git
-
Go to
config.env
Add your Token -
There is some sample information in it
API_KEY= ``` your Token ````
local=57000228 ( You can check AreaCodeFile to find out )
player_tag=%2322R920J00 ( You can check in your game ) ```Due to transcoding issues all "#" must be converted to "%23" ```
player_name=Xiang ( your name )
-
node integrate.js
-
The generated data will be displayed in the
json folder
-
Done
This project is published under Apache-2.0 license