React757 / react757.github.io

Making react "news site" with (Custom news articles filtered by team of Numbers )
https://react757.github.io
MIT License
0 stars 5 forks source link

how to use this json data #3

Open Pandimadhubabu opened 3 years ago

Pandimadhubabu commented 3 years ago

when we run this https://docs.google.com/spreadsheets/d/1VIgWeByW0t2CEQA5Sssrze48V_R6wemDV6ws7S-FSgc/linkdetails?linkurl=https://timesofindia.indiatimes.com

we get open graph data of url with images

)]}' [1,null,null,["Times of India: News - Latest News, Breaking News, Bollywood, Sports, Business and Political News",null,"Top News in India: Read Latest News on Sports, Business, Entertainment, Blogs and Opinions from leading columnists. Times of India brings the Breaking News and Latest News Headlines from India and around the World.",null,null,"https://encrypted-tbn2.gstatic.com/favicon-tbn?q\u003dtbn%3AANd9GcTmW1IBaUWWMIO1IxnUS61yeGXVWNQQ9Ej1HctzTbaqIdw7DczGVlDHnE2SG7Uyt-DA9hW8rN0X8XnweYzSFGVeLS_0koB8HCu1J3plGoe9LZimmr2Wow"]]

Pandimadhubabu commented 3 years ago

https://www.opengraph.xyz/.netlify/functions/metadata/?url=https://timesofindia.indiatimes.com

{"ogTitle":"News: US News, Top News in India, US election news, Business news, Sports & International News | Times of India","ogUrl":"https://timesofindia.indiatimes.com/us","ogDescription":"Read Top News in India and around the World on Times of India. Breaking news coverage and analysis on US presidential election, politics, current affairs, business & sports.","twitterUrl":"https://timesofindia.indiatimes.com/us","twitterTitle":"News: US News, Top News in India, US election news, Business news, Sports & International News | Times of India","twitterDescription":"Read Top News in India and around the World on Times of India. Breaking news coverage and analysis on US presidential election, politics, current affairs, business & sports.","twitterCard":"summary_large_image","twitterSite":"@timesofindia","ogSiteName":"The Times of India","ogType":"website","ogImage":{"url":"https://static.toiimg.com/photo/47529300.cms","width":"1070","height":"580","type":null},"twitterImage":{"url":"https://static.toiimg.com/photo/47529300.cms","width":null,"height":null,"alt":null},"ogLocale":"en","charset":"utf8","requestUrl":"https://timesofindia.indiatimes.com","success":true}

jjdechavez commented 3 years ago

Hello, can you explain more the details about the issue?

Pandimadhubabu commented 3 years ago

Sorry ! we see this Url https://react757.github.io/https://indianexpress.com/article/cities/delhi/diminishing-antibodies-could-explain-delhis-sero-result-6655750/ Screenshot 2020-09-30 214912

just I want fetch data from this

https://www.opengraph.xyz/.netlify/functions/metadata/?url=https://indianexpress.com/article/cities/delhi/diminishing-antibodies-could-explain-delhis-sero-result-6655750/

rootaux commented 3 years ago

@Pandimadhubabu You would have to make a GET request and parse the response as JSON. For making a GET request I would recommend using axios

Pandimadhubabu commented 3 years ago

@Pandimadhubabu You would have to make a GET request and parse the response as JSON. For making a GET request I would recommend using axios

Thanks and Yes

But it is third-party websites. So i am trying to bulid.