kubowania / climate-change-live-api

A Demo to show how to build your own API and host in on RapidAPI
186 stars 119 forks source link

Routing promblems in API #3

Open sam-march-31 opened 2 years ago

sam-march-31 commented 2 years ago

when trying for { name: 'nyt', address: 'https://www.nytimes.com/international/section/climate', base: '', },

in jason view i could get base url ,i followed you said done in the video but

{ "title": "Spurred by the Supreme Court, a Nation Divides Along a Red-Blue AxisOn abortion, climate change, guns and much more, two Americas — one liberal, one conservative — are moving in opposite directions.By Jonathan Weisman", "url": "https://www.nytimes.com//2022/07/02/us/politics/us-divided-political-party.html", "source": "nyt" }, { "title": "@nytclimatetwitter page for @nytclimate", "url": "https://www.nytimes.com/https://twitter.com/nytclimate", "source": "nyt"

without any base

{ "title": "Spurred by the Supreme Court, a Nation Divides Along a Red-Blue AxisOn abortion, climate change, guns and much more, two Americas — one liberal, one conservative — are moving in opposite directions.By Jonathan Weisman", "url": "/2022/07/02/us/politics/us-divided-political-party.html", "source": "nyt" }, { "title": "@nytclimatetwitter page for @nytclimate", "url": "https://twitter.com/nytclimate", "source": "nyt" } ]

how to resolve this kind problems in api