Just a simple project to scrap tgju.org. Here I just parse data and return them.
You can use Swagger to test. Open Swagger.
The notebook is just for testing.
So, I used notebooks as I said to scrap data. Now used it in an API.
- baseUrl: https://tgju.amirhossein.info/api
Here are routes.
In /price
route we have a param named of
. This item can be one of items below:
- gold: To get gold prices
- currency: To get currencies prices
If of
is not in the list, you will get 404 errror with this data:
{
"message": "Invalid"
}
Example: