toledobastos / GuardianR

Provides an interface to the Open Platform's Content API of the Guardian Media Group. It retrieves content from news outlets The Observer, The Guardian, and guardian.co.uk from 1999 to current day
6 stars 0 forks source link

Can you provide list of available sections. please #2

Closed pssguy closed 8 years ago

pssguy commented 8 years ago

Not that difficult to obtain but would still be useful in usage notes

toledobastos commented 8 years ago

The list is actually quite long because it include niche sections from Guardian sister paper and their respective websites. Here's the list of news sections returned by the API back in 2013:

[1] "Advertising"
[2] "Art and design"
[3] "Beasts of the Southern Wild - the movie"
[4] "Best Awards"
[5] "Boden Collections"
[6] "Books"
[7] "British Gas Smart Homes"
[8] "Business"
[9] "Children's books"
[10] "Comment is free"
[11] "Crosswords"
[12] "Culture"
[13] "Culture professionals network"
[14] "Education"
[15] "Environment"
[16] "Extra"
[17] "Eyewitness subscriber"
[18] "Fashion"
[19] "Film"
[20] "Football"
[21] "From the Guardian"
[22] "From the Observer"
[23] "Global"
[24] "Global development"
[25] "GNM press office"
[26] "Guardian Collection"
[27] "Guardian Masterclasses"
[28] "Guardian Small Business Network"
[29] "Guardian Sustainable Business"
[30] "Guardian US press office"
[31] "Healthcare Network - Clinical research zone"
[32] "Healthcare Professionals Network"
[33] "Higher Education Network"
[34] "Housing Network"
[35] "Info"
[36] "Law"
[37] "Life and style"
[38] "Local Government Network"
[39] "Media"
[40] "Media Network"
[41] "Media Network - Partner zone eBay"
[42] "Media Network - Partner zone PUBLICi"
[43] "Money"
[44] "Music"
[45] "Nespresso Kitchen Living"
[46] "News"
[47] "Parioli - taste of Rome"
[48] "Partner zone College of Law"
[49] "Politics"
[50] "Public Leaders Network"
[51] "Public Leaders Network SAS partner zone"
[52] "Science"
[53] "Select"
[54] "Small business network partner zone Lloyds TSB"
[55] "Social Care Network"
[56] "Social enterprise network"
[57] "Social Enterprise Network partner zone Santander" [58] "Social Enterprise partner zone The Co-operative" [59] "Society"
[60] "Sport"
[61] "Stage"
[62] "Sustainability"
[63] "Teacher Network"
[64] "Teacher Network Partner zone Zurich"
[65] "Technology"
[66] "Television & radio"
[67] "Travel"
[68] "UK news"
[69] "Visit Austin"
[70] "Voluntary Sector Network"
[71] "Voluntary Sector Network - CAF partner zone"
[72] "Voluntary Sector Network - MyDonate partner zone" [73] "Weather"
[74] "World news"

pssguy commented 8 years ago

Quite the list - and it has changed e.g US News. This appears to be the sectionName variable. I think you rather need to enter the sectionid value e.g us-news as an argument to get_guardian()

toledobastos commented 8 years ago

That's right. Section filtering is based on sectionId, which is shorter but still too long to make to the vignette:

[1] "advertising"
[2] "arts"
[3] "best-awards"
[4] "boden-collections"
[5] "cars"
[6] "economy"
[7] "education"
[8] "entertainment"
[9] "environment"
[10] "extra"
[11] "eyewitness-subscriber"
[12] "fashion"
[13] "gnm-press-office"
[14] "guardian-collection"
[15] "guardian-masterclasses"
[16] "guardian-us-press-office"
[17] "health"
[18] "health-nihr-clinical-research-zone" [19] "info"
[20] "jobs"
[21] "jobs-caf-partner-zone"
[22] "jobs-mydonate-partner-zone"
[23] "jobs-partner-zone-santander"
[24] "lifestyle"
[25] "local news"
[26] "national"
[27] "nespresso-kitchen-living"
[28] "news"
[29] "opinion"
[30] "parioli-taste-of-rome"
[31] "partner-zone-college-of-national"
[32] "politics"
[33] "politics-sas-partner-zone"
[34] "science"
[35] "select"
[36] "sports"
[37] "technology"
[38] "theguardian"
[39] "theobserver"
[40] "tourism"
[41] "weather"
[42] "world"

toledobastos commented 8 years ago

Here is the top-20 most common sections. I'll add that to the documentation:

1 entertainment 2 sports 3 world 4 opinion 5 economy 6 national 7 arts 8 politics 9 environment 10 lifestyle 11 jobs 12 education 13 technology 14 science 15 fashion 16 news 17 local news 18 tourism 19 health 20 cars

toledobastos commented 8 years ago

Included list of sections to 0.7.1 vignette.