Skip to content

Instantly share code, notes, and snippets.

@rajtheinnovator
Last active October 24, 2018 12:56
Show Gist options
  • Save rajtheinnovator/a45ac7e2c1ec92c4aabc72891fbf84cf to your computer and use it in GitHub Desktop.
Save rajtheinnovator/a45ac7e2c1ec92c4aabc72891fbf84cf to your computer and use it in GitHub Desktop.
Sample source of data from Newsapi.org in .json format
{
"status":"ok",
"totalResults":10,
"articles":[
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"Single-use plastics ban backed by Euro MPs",
"description":"Plastic items such as cutlery and straws would be banned in the EU under plans approved by MEPs.",
"url":"http://www.bbc.co.uk/news/world-europe-45965605",
"urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/5A96/production/_104009132_gettyimages-549036767.jpg",
"publishedAt":"2018-10-24T11:54:43Z",
"content":"Image copyright Getty Images Image caption Traces of plastic have been found in sea creatures for decades The European Parliament has voted for a complete ban on a range of single-use plastics across the union in a bid to stop pollution of the oceans. MEPs ba… [+941 chars]"
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"China's hidden camps",
"description":"What's happened to the vanished Uighurs of Xinjiang?",
"url":"https://www.bbc.co.uk/news/resources/idt-sh/China_hidden_camps",
"urlToImage":"https://news.files.bbci.co.uk/vj/live/idt-images/shorthand-China_hidden_camps/promo-map-fb_u11n3.jpg",
"publishedAt":"2018-10-24T10:37:46.9007116Z",
"content":"Given all this, it is perhaps not that surprising that China has introduced another older and blunter solution to the perceived disloyalty of many of its Uighur citizens. Despite the government's denials, the most compelling evidence for the existence of the … [+1306 chars]"
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"Meghan's Fiji message of female empowerment",
"description":"The Duchess of Sussex spoke in Fiji about the importance of women getting university education.",
"url":"http://www.bbc.co.uk/news/45965195",
"urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/4F9C/production/_104008302_p06pq8nx.jpg",
"publishedAt":"2018-10-24T09:34:50Z",
"content":null
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"Apple boss - 'personal data is weaponised'",
"description":"The Apple boss also praised the EU's new data protection regulation GDPR, in a speech in Brussels.",
"url":"http://www.bbc.co.uk/news/technology-45963935",
"urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/4E66/production/_104007002_gettyimages-967224834.jpg",
"publishedAt":"2018-10-24T09:29:38Z",
"content":"Image copyright Getty Images Image caption Tim Cook made an unusual statement in Brussels, calling on the US to enact stronger privacy laws Apple chief executive Tim Cook has demanded a tough new US data protection law, in an unusual speech in Europe. Referri… [+3266 chars]"
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"Police hunt Ross from Friends lookalike",
"description":"Internet users say the suspect is the \"spitting image\" of actor David Schwimmer, aka Ross Geller.",
"url":"http://www.bbc.co.uk/news/uk-england-lancashire-45960806",
"urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/55AA/production/_104003912_rossxross.jpg",
"publishedAt":"2018-10-24T09:10:11Z",
"content":"Image copyright Blackpool Police/Getty Images Image caption The one with the doppelganger: People thought the suspect (left) bore a striking resemblance to actor David Schwimmer A UK police force's image of a Ross Geller \"lookalike\" has drawn thousands of com… [+2817 chars]"
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"Nicki Minaj sued over Tracy Chapman song",
"description":"A lawsuit claims the rapper sampled Baby Can I Hold You for one of her songs without permission.",
"url":"http://www.bbc.co.uk/news/newsbeat-45962284",
"urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/1478A/production/_104005838_nicki.jpg",
"publishedAt":"2018-10-24T08:52:16Z",
"content":"Image copyright Getty Images Image caption Nicki Minaj is being sued over the alleged use of Tracy Chapman's song Baby Can I Hold You Nicki Minaj is being sued by singer-songwriter Tracy Chapman over claims she sampled her song without permission. A lawsuit h… [+2037 chars]"
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"Winning ticket in $1.6bn US lotto draw",
"description":"A winning ticket for the record-breaking jackpot was bought in South Carolina, lottery officials say.",
"url":"http://www.bbc.co.uk/news/world-us-canada-45963635",
"urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/795E/production/_104007013_mediaitem104007012.jpg",
"publishedAt":"2018-10-24T08:25:04Z",
"content":"Image copyright EPA Image caption There have been queues for lottery tickets across the US At least one winning ticket has been reported, in South Carolina, for the largest lottery jackpot in US history. The winner will take home a whopping $1.6bn (£1.2bn) in… [+1792 chars]"
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"White nationalist's wife says he abused her",
"description":"The wife of US alt-right figurehead Richard Spencer accused him of assault in divorce papers.",
"url":"http://www.bbc.co.uk/news/world-us-canada-45960094",
"urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/0780/production/_104002910_gettyimages-863152278.jpg",
"publishedAt":"2018-10-23T23:17:45Z",
"content":"Image copyright Getty Images Image caption Richard Spencer popularised the term \"alt-right\" The wife of US white nationalist Richard Spencer has accused him of being \"physically, verbally and emotionally abusive\", US media report. In papers filing for divorce… [+1250 chars]"
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"Trump: Khashoggi murder 'worst cover-up'",
"description":"The US also announced on Tuesday that it is revoking the visas of suspected Saudi operatives.",
"url":"http://www.bbc.co.uk/news/world-us-canada-45960865",
"urlToImage":"https://ichef.bbci.co.uk/images/ic/1024x576/p06pp4yg.jpg",
"publishedAt":"2018-10-23T22:02:39Z",
"content":"Media caption The US President criticises Saudi Arabia's handling of Jamal Khashoggi's death US President Donald Trump has called Saudi Arabia's response to the murder of journalist Jamal Khashoggi \"the worst cover-up ever\". He added that whoever organised th… [+4774 chars]"
},
{
"source":{
"id":"bbc-news",
"name":"BBC News"
},
"author":"BBC News",
"title":"Six children dead in US virus outbreak",
"description":"A dozen other children have also been infected by an adenovirus outbreak at a New Jersey health centre.",
"url":"http://www.bbc.co.uk/news/world-us-canada-45959886",
"urlToImage":"https://ichef.bbci.co.uk/news/1024/branded_news/4D12/production/_104003791_5c4dd62e-23f9-4ed4-82a8-ca1658135ac6.jpg",
"publishedAt":"2018-10-23T20:52:22Z",
"content":"Image copyright Google Maps Image caption The outbreak occurred at the Wanaque Center A viral outbreak at a New Jersey long-term medical care centre has killed six children and left a dozen more infected. State officials confirmed a total of 18 cases of adeno… [+2320 chars]"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment