Afficher des vidéos de YouTube avec YQL

Pour lister des vidéos de Youtube on utilise la boucle DATA de SPIP 3 ainsi qu’une recherche sur Youtube via YQL

Le code

Le résultat

Aucun résultat

Et voilà le travail !

CKAN API

CKAN est un outil de gestion/publication d’entrepôt OpenData assez largement utilisé. Il propose une API REST qui permet d’interroger l’entrepôt pour rechercher, lister et récupérer des jeux de données, le tout au format JSON.

L’interrogation de cette API se fait donc simplement à travers la méthode JSON.

Un exemple tiré de la documentation de l’API CKAN.

Le code

Le résultat

help
https://demo.ckan.org/api/3/action/help_show?name=group_list
success
1
result
ckanr_test_group, testtest234234523, asdasdasdasda, aaaasdasd, fruitloops2, sooyeon, wine, miso123, geo_map, goyang, 4cb2e441-5907-4d3c-a19e-7b8b1d1267de, testgroup01, testgroup02, 100-01-01-public-transport-analysis, 100-01-02-freight-transport-optimisation, 100-01-smart-infrastructure, 100-01-smart-communication, 100-smart-cities, 111, 111111111111111, 132341234235, 1a, 5-ways-keto-advanced-can-make-you-invincible, 8kgroup, 8kgroup1, 999, jjjjj, aaaaaaa, aaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaa1212, aabbb, aaron-test-group, abc, administracion-publica, air-monitoring, ajax, ali, amine-groupe, android-phone, aps, ara2, aras, arjsgroup, asdasd2212, asdasdasd1sda-e-asdas-___-_-u-_-pdasd, asdf, asdfasdf, asdfg, atmospheric-science, austin123123, bbbbb, backpacks, banany, bateams, bazayod, beargroup, benbong-test, big-data-group, biodiv, bmo, bnk48, boom, bubonojdfnjon, buy-non-electronic-bird-control, buy-ptfe-lined-concentric-butterfly-valve, cannaleafz-cbd-oil-make-your-mind-healthy, cardboard-display-stand, cats, ce, ce1, ceo-office, ces, ces1, cheap-bath-salt, cheap-smt-consumables, chennai-rockers, china-25-x-25-pre-gi-rectangular-tube-manufacturers, china-aluminum-window-profile-bending-machine, china-calendar-hanger-factory, china-dead-front-arresters, china-dry-powder-mixing-machine-manufacturers, china-pigment-tio2-suppliers, china-spirulina-extract-factory, china-standby-diesel-generator-factory, china-tubular-heating-element-manufacturers, cialix-male-enhancement, cidadaos, ck, clear-plastic-fold-up-box-cosmetic-quotation, cliente, cm, collection-example, compostable-paper-cups-suppliers, convenios-malvinas, cordless-nail-drill-factory, crazy-bulk-muscle-building-supplements, csi-group, csv, cultura, cultural-dissemination, customized-gift-paper-box-with-cover, customized-outdoor-flag-fabric, customized-warehouse-tents-for-sale, custom-silicone-luggage-tags, custom-test-group, darwin-group, dasdasdadsasd, database_connections, d-t-dai, dd_test_group, delyne, demo999, demo-gggg, developer, dg1, dg2, discount-electronic-product-containers, dkan, dkdk, dong1, douzone_etl, dried-ginger, dvbvdv, eagle-alpha, economia-y-finanzas, economics, editgroup, edpolicycenter, ed-test-group, education, educational-institutes, eg-abi, envri-summerschool-2019, ergd, eu-project-test, ewean, example123, example-group, experimentopendata, extrusion-welder-price, false, fewfe, food-display-showcase-manufacturers, formazione, furniture-board-laminating-press, g1, gbs, geochemistry, gisbang_ckan, gl51, grace-test-group, gridmaster, groop1, group-1, wfdweqfe2f, group-by-hassatorn, group-demo, groupit, grp_someshapefiles, grrrrrrrrrrroup, gru-cnmc, dataset, grupo-dados, grupokev, grupo-prueba, grupo_teste, gruppo2, demo-meteo-catalogue, gruppo_istituto_ricercatore_a, gruppo_istituto_ricercatore_b, gruppostefano, harvester, health, heisenberg, hello-ckan, hello-world, high-temperature-cold-store-made-in-china, hogehoge, horizontal-reactor-factory, how-does-keto-advanced-work, https-naturalketodiets-com-slender-lyfe-keto, https-www-fitdiettrendz-com-leptitox-review, https-www-fitdiettrendz-com-primal-core, https-www-tophealthpills-com-natural-pharmers-cbd-oil, http-top10cbdoilstore-com-cannaleafz-cbd-oil, http-top10cbdoilstore-com-rapid-relief-cbd, http-www-onlinehealthsupplement-com-natural-pure-keto, ict, img-src-x-onerror-alert-aaa, iml-mould-price, income, ingredients-use-to-make-cbd-zensatio, intelligent-led-shoes-light-price, isisis, jan2020, jghtest1, jigger-dyeing-machine-factory, json, karst-in-slovenia, kdl-projects, kesehatan, keto-forcera, keto-lyte, kitchen-countertops-suppliers, kp-it-board, kurorogroup, large-extrusion-price-sign-board-manufacturers, lifewatch-eric, love-spells-that-work-fast, malaria2, malaria, man_group, meteo, meu-grupo, meu-teste, michaelsp, mine-k-2, mixer-vessel-factory, mobigen, moi-truong, movement-recognition, mrgroup1, myfirsttestgroup, my-group, my-group-2, my-group-3, my_group_to_test, mygroupuffa, mypost, mytest-group, my-test-group-123, myvagliogroup, nature-norms, ndvn-group-1, newboi6, new-group, nirab, nova-grupa, nucleo-1, nucleo-2, obsea-timeseries, og, omix-test2, one, one-piece-10-lead-ecg-cables-for-nk, one-piece-data, opendata, opendata-processor-2020, open-source1, open-source, organic-groups, owl_group, parcan-demography, pecan, pe-double-wall-corrugated-pipe-suppliers, permanent-magnetic-cylinder, ph_grp_1, pjtestgroup, pm2-5, polycrystalline-alumina-fiber-manufacturers, population-and-housing, pr, primary-dojo-group, produto-tecnologia-edicao, produto-tecnologia-visualizacao, projeto-j-gestao-de-dados-cientificos, prova, pxxxx_group, rakennukset, rdm_grp1, reflective-cloth-suppliers, renden, ri-petenti, sa, samet, sample-csv, sample-group, satestgroup, saude, scs, sec_hamza_data_catalogue_group, serious-business, simpliv, som_test_group, sosial, ssmgroup, steel-cord-conveyor-belt-manufacturers, stuff, summerschool-lecce, surveys, sztaki-group, taylorgroup, tctester, mygroup, tee-shirt-for-women-manufacturers, test, test0, test10101, test11a, test11, datatype-test20190726-2, testdata-aaaagroup, test-dataset11, testdelete, testei, teste-insight, teste-jefferson-pecanha, testema-group, tester123132, test-feed, test_group, testgroup, test-group, testgroup1, testgroup1010101, test_group11, test_group_11, test_group_111, testgrouplec, testgroups, test_group_v1, testgruppe, test_laurent, testmhgroup1, testmygroup, test-package-delete, test_sm, test_son, teuw, tie-bars-suppliers, titanium-automobile-hub-screw-suppliers, tlalalala, tocilizumab-suppliers, total_group, transparencia-a-catalunya, transport, transporte, tuesdaydemo-health, two, uncommon-shape-sauce-cup, upvc-casement-window-factory, vocabularios-utilizados, wagamachi_test_group, wagmaptest, wagmap_test_group, walkie-talkie-for-commercial-grade-manufacturers, walt-disney, wb_data, what-is-puretronics-ketogenix, what-is-trim-fast-keto, who, wholesale-asbestos-reinforced-composite-sheet, wholesale-t-hinge, wow, wpc-flooring-suppliers, wqerwqer, wwwwwwwwwwwww, xabc, xml, ybsgroup, ybsgroups2, ystest333, ystestdddddddd, http-www-moj-gov, attoqaoe1s, o1kodou1kes-ade1es, indiagroup, 321, datatype

Dans un second exemple, on fait une recherche de jeux de données sur un mot clé "spending" :

Le code

Le résultat

help
https://demo.ckan.org/api/3/action/help_show?name=package_search
success
1
result

count: 7
sort: score desc, metadata_modified desc
facets:
results:
 0:
  license_title: Other (Not Open)
  maintainer:
  relationships_as_object:
  private:
  maintainer_email:
  num_tags: 1
  id: 68c8dfec-15ca-4877-89e0-dd09b8030c2f
  metadata_created: 2020-02-02T08:10:09.757819
  metadata_modified: 2020-02-05T20:01:19.705304
  author:
  author_email:
  state: active
  version:
  creator_user_id: 8741ac50-4b30-4630-95a3-5a4f72477113
  type: dataset
  resources:
   0:
    mimetype:
    cache_url:
    hash:
    description:
    name: Bin.xlsx
    format: XLS
    url: https://demo.ckan.org/dataset/68c8dfec-15ca-4877-89e0-dd09b8030c2f/resource/36e42fc4-9df8-495a-85c8-c141d4f375d0/download/bin.xlsx
    datastore_active: 1
    cache_last_updated:
    package_id: 68c8dfec-15ca-4877-89e0-dd09b8030c2f
    created: 2020-02-02T08:10:59.779101
    state: active
    mimetype_inner:
    last_modified:
    position: 0
    revision_id: 39a25cea-ce4e-491a-917a-0e104071ea6c
    url_type: upload
    id: 36e42fc4-9df8-495a-85c8-c141d4f375d0
    resource_type:
    size:
   1:
    mimetype:
    cache_url:
    hash:
    description: Consumer Spending
    name: Bin.CSV
    format: CSV
    url: https://demo.ckan.org/dataset/68c8dfec-15ca-4877-89e0-dd09b8030c2f/resource/5d0b5aff-3b5e-45c8-99fc-7530930d245f/download/bin2.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 68c8dfec-15ca-4877-89e0-dd09b8030c2f
    created: 2020-02-02T08:13:20.198058
    state: active
    mimetype_inner:
    last_modified:
    position: 1
    revision_id: 01b677d2-c826-4f85-8817-16001031fca1
    url_type: upload
    id: 5d0b5aff-3b5e-45c8-99fc-7530930d245f
    resource_type:
    size:
  num_resources: 2
  tags:
   0:
    vocabulary_id:
    state: active
    display_name: economy
    id: 1fa4ba14-1c99-4cb6-868c-535d006cfee6
    name: economy
  groups:
  license_id: other-closed
  relationships_as_subject:
  organization:
  name: consumer-spending-europe
  isopen:
  url:
  notes: Consumber Spending blah blah blah
  owner_org:
  extras:
  title: Consumer Spending Europe
  revision_id: 39a25cea-ce4e-491a-917a-0e104071ea6c
 1:
  license_title: Creative Commons Attribution
  maintainer:
  relationships_as_object:
  private:
  maintainer_email:
  num_tags: 2
  id: 47274311-fe4f-4d87-9bbb-dbea21fe20d3
  metadata_created: 2019-06-10T20:38:11.645882
  metadata_modified: 2019-06-17T15:14:26.880606
  author:
  author_email:
  state: active
  version:
  creator_user_id: 64e2dd7f-b830-4757-ab63-9ad693bbea33
  type: dataset
  resources:
   0:
    mimetype:
    cache_url:
    hash:
    description:
    name: March 2016
    format: CSV
    url: https://demo.ckan.org/dataset/47274311-fe4f-4d87-9bbb-dbea21fe20d3/resource/fa35c778-929a-4fc5-a43b-4c37c5a5c13d/download/march_2016.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 47274311-fe4f-4d87-9bbb-dbea21fe20d3
    created: 2019-06-10T20:38:28.344068
    state: active
    mimetype_inner:
    last_modified:
    position: 0
    revision_id: e02e89d1-cfdd-4a2d-a214-4b03cd3dd278
    url_type: upload
    id: fa35c778-929a-4fc5-a43b-4c37c5a5c13d
    resource_type:
    size:
   1:
    mimetype:
    cache_url:
    hash:
    description:
    name: March 2016 v2
    format: CSV
    url: https://demo.ckan.org/dataset/47274311-fe4f-4d87-9bbb-dbea21fe20d3/resource/1fa6b8ff-72e1-4fd7-84b5-bb7f30100126/download/march_2016_2.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 47274311-fe4f-4d87-9bbb-dbea21fe20d3
    created: 2019-06-10T20:42:07.760412
    state: active
    mimetype_inner:
    last_modified:
    position: 1
    revision_id: 2f6b0be0-4f99-420a-a156-93f04e4d0ec9
    url_type: upload
    id: 1fa6b8ff-72e1-4fd7-84b5-bb7f30100126
    resource_type:
    size:
   2:
    mimetype:
    cache_url:
    hash:
    description:
    name:
    format: CSV
    url: https://demo.ckan.org/dataset/47274311-fe4f-4d87-9bbb-dbea21fe20d3/resource/3d7270f8-8b12-4a34-8281-f41b5710ae8c/download/purchase-card-transactions-dec-17-18.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 47274311-fe4f-4d87-9bbb-dbea21fe20d3
    created: 2019-06-10T20:45:07.238741
    state: active
    mimetype_inner:
    last_modified:
    position: 2
    revision_id: 2f6b0be0-4f99-420a-a156-93f04e4d0ec9
    url_type: upload
    id: 3d7270f8-8b12-4a34-8281-f41b5710ae8c
    resource_type:
    size:
  num_resources: 3
  tags:
   0:
    vocabulary_id:
    state: active
    display_name: Economy
    id: c50d51a2-3302-4244-96b4-73e77513b080
    name: Economy
   1:
    vocabulary_id:
    state: active
    display_name: Spending
    id: 6f406258-5b7c-4a28-ba2a-0cc002d2a60f
    name: Spending
  groups:
  license_id: cc-by
  relationships_as_subject:
  organization:
   description:
   created: 2019-03-20T09:58:23.878779
   title: test
   name: test-3
   is_organization: 1
   state: active
   image_url:
   revision_id: df6f78aa-ca7d-4afc-9129-e92f2a08a36b
   type: organization
   id: 98643e3b-82f0-4bb5-8f72-56eec5e3ad87
   approval_status: approved
  name: payments-over-f250-made-by-newcastle-city-council
  isopen: 1
  url:
  notes: Original dataset : https://data.gov.uk/dataset/20e69615-fd3a-436a-a36f-d067cb18eb78/payments-over-250-made-by-newcastle-city-council
  owner_org: 98643e3b-82f0-4bb5-8f72-56eec5e3ad87
  extras:
  license_url: http://www.opendefinition.org/licenses/cc-by
  title: Payments over £250 made by Newcastle City Council
  revision_id: e02e89d1-cfdd-4a2d-a214-4b03cd3dd278
 2:
  license_title: Creative Commons Attribution
  maintainer:
  relationships_as_object:
  private:
  maintainer_email:
  num_tags: 0
  id: cf2dda8f-d4f1-45d4-ad44-d1fd89534672
  metadata_created: 2020-03-19T17:45:57.110963
  metadata_modified: 2020-03-19T17:45:57.110974
  author:
  author_email:
  state: active
  version:
  creator_user_id: 7728de21-cd35-44b3-b906-0c98d3d5596b
  type: dataset
  resources:
   0:
    cache_last_updated:
    resource-type: data-link
    package_id: cf2dda8f-d4f1-45d4-ad44-d1fd89534672
    datastore_active:
    id: 1016a3ca-1063-4c33-9549-2b9be2b1b59f
    size:
    datafile-date: 01.02.20 - 29.02.20
    state: active
    hash:
    description:
    format: CSV
    last_modified:
    url_type:
    mimetype: text/csv
    cache_url:
    name: Spend over £25k
    created: 2020-03-10T11:27:49.183556
    url: https://www.barnsleyccg.nhs.uk/CCG%20Downloads/Financial%20management/2019-20/02P-2019-2020-11.csv
    mimetype_inner:
    position: 0
    revision_id: 6646c510-4ca9-4ca9-8cca-8b2cd626eaef
    resource_type:
  num_resources: 1
  tags:
  groups:
  license_id: cc-by
  relationships_as_subject:
  organization:
   description:
   created: 2020-03-13T09:13:38.724557
   title: Trantor
   name: trantor
   is_organization: 1
   state: active
   image_url:
   revision_id: f8c54f30-df28-43b7-af05-503cf5f5e942
   type: organization
   id: ca7e18e5-2bee-45fb-882c-3c3a626562b5
   approval_status: approved
  name: 02p-expenditure-over-25k-feb-20
  isopen: 1
  url:
  notes: nhs-barnsley-ccg-expenditure-over-25k-Feb-2020
  owner_org: ca7e18e5-2bee-45fb-882c-3c3a626562b5
  extras:
   0:
    key: harvest_name
    value: 02p-expenditure-over-25k-feb-20
   1:
    key: harvest_source
    value: data.gov.uk
  license_url: http://www.opendefinition.org/licenses/cc-by
  title: 02P Expenditure Over 25k - Feb-20
  revision_id: 6646c510-4ca9-4ca9-8cca-8b2cd626eaef
 3:
  license_title: Creative Commons Attribution
  maintainer:
  relationships_as_object:
  private:
  maintainer_email:
  num_tags: 0
  id: 11affb2d-8f4d-4e31-b50b-b99098777830
  metadata_created: 2019-06-10T20:46:27.055836
  metadata_modified: 2019-06-10T20:46:39.461710
  author:
  author_email:
  state: active
  version:
  creator_user_id: 64e2dd7f-b830-4757-ab63-9ad693bbea33
  type: dataset
  resources:
   0:
    mimetype:
    cache_url:
    hash:
    description:
    name:
    format: CSV
    url: https://demo.ckan.org/dataset/11affb2d-8f4d-4e31-b50b-b99098777830/resource/fa4ee2a8-049d-4425-90f9-e5e6294297f0/download/purchase-card-transactions-dec-17-18.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 11affb2d-8f4d-4e31-b50b-b99098777830
    created: 2019-06-10T20:46:38.597544
    state: active
    mimetype_inner:
    last_modified:
    position: 0
    revision_id: 8a6592a4-26ae-4640-a666-a92c357d70b2
    url_type: upload
    id: fa4ee2a8-049d-4425-90f9-e5e6294297f0
    resource_type:
    size:
  num_resources: 1
  tags:
  groups:
  license_id: cc-by
  relationships_as_subject:
  organization:
   description:
   created: 2019-03-20T09:58:23.878779
   title: test
   name: test-3
   is_organization: 1
   state: active
   image_url:
   revision_id: df6f78aa-ca7d-4afc-9129-e92f2a08a36b
   type: organization
   id: 98643e3b-82f0-4bb5-8f72-56eec5e3ad87
   approval_status: approved
  name: payments-over-f250-made-by-north-tyneside-metropolitan-borough-council
  isopen: 1
  url:
  notes: Original dataset : https://data.gov.uk/dataset/d3fcfb1e-fa4a-4887-bdc0-8ccf18950f87/council-spend-over-250
  owner_org: 98643e3b-82f0-4bb5-8f72-56eec5e3ad87
  extras:
  license_url: http://www.opendefinition.org/licenses/cc-by
  title: Payments over £250 made by North Tyneside Metropolitan Borough Council
  revision_id: 8a6592a4-26ae-4640-a666-a92c357d70b2
 4:
  license_title: Creative Commons Attribution
  maintainer:
  relationships_as_object:
  private:
  maintainer_email:
  num_tags: 0
  id: f5e367c2-88c5-4cc1-be8c-618297d185fa
  metadata_created: 2019-05-22T13:31:32.821170
  metadata_modified: 2019-05-22T13:33:18.426521
  author:
  author_email:
  state: active
  version:
  creator_user_id: 250eee50-aae9-4ca0-9d2c-0632ea34c392
  type: dataset
  resources:
   0:
    mimetype:
    cache_url:
    hash:
    description: Freelancers have become a crucial part of business models around the world and are now a main source within establishing a workforce. Contingent workforce solutions have become increasingly popular as business owners have sought to find ways to reduce costs, while continuing to grow and establish their brand. A contingent workforce is the ultimate possibility, providing business owners a way to open new avenues for a company while keeping spending in check.
    name: Freelance future trends
    format:
    url:
    datastore_active:
    cache_last_updated:
    package_id: f5e367c2-88c5-4cc1-be8c-618297d185fa
    created: 2019-05-22T13:33:18.174093
    state: active
    mimetype_inner:
    last_modified:
    position: 0
    revision_id: 5c8a9e8e-841a-40a2-8741-92ab30a683bb
    url_type:
    id: 08625a63-ba6b-4331-9163-fa460f4938bf
    resource_type:
    size:
  num_resources: 1
  tags:
  groups:
  license_id: cc-by
  relationships_as_subject:
  organization:
  name: freelance-future-trends
  isopen: 1
  url: https://www.fieldengineer.com/blogs/enterprise-use-of-freelancers-data-future-trends
  notes: Freelancers have become a crucial part of business models around the world and are now a main source within establishing a workforce. Contingent workforce solutions have become increasingly popular as business owners have sought to find ways to reduce costs, while continuing to grow and establish their brand. A contingent workforce is the ultimate possibility, providing business owners a way to open new avenues for a company while keeping spending in check.
  owner_org:
  extras:
  license_url: http://www.opendefinition.org/licenses/cc-by
  title: Freelance future trends
  revision_id: 5c8a9e8e-841a-40a2-8741-92ab30a683bb
 5:
  license_title: Creative Commons Attribution
  maintainer:
  relationships_as_object:
  private:
  maintainer_email:
  num_tags: 4
  id: 23c5a12a-b38b-4f9c-89dd-9c617d9f964d
  metadata_created: 2020-04-24T18:04:20.950912
  metadata_modified: 2020-04-24T18:05:54.343938
  author:
  author_email:
  state: active
  version:
  creator_user_id: 7bb45cf3-fc7f-4bae-a78f-f8a9339e75da
  type: dataset
  resources:
   0:
    mimetype:
    cache_url:
    hash:
    description: Monika Jacob is a Marketing Strategist who works with The Academic Papers UK to grow their professional brands, human-to-human. After spending nearly 7 years working in Digital Marketing for multimillion dollar brands and startups, Monika Jacob knows well what truly things are essential in Digital Marketing. Monika Jacob knows well how to attract customers.
    name: Monika Jacob
    format:
    url:
    datastore_active:
    cache_last_updated:
    package_id: 23c5a12a-b38b-4f9c-89dd-9c617d9f964d
    created: 2020-04-24T18:05:53.697425
    state: active
    mimetype_inner:
    last_modified:
    position: 0
    revision_id: 9ba02786-5e08-4f06-9290-805df7d30c34
    url_type:
    id: 917255c1-fd92-4a6d-b839-2a310f9d35c3
    resource_type:
    size:
  num_resources: 1
  tags:
   0:
    vocabulary_id:
    state: active
    display_name: Educación
    id: 36f8394f-a51e-4a5f-9a6c-07ab6f2ad22f
    name: Educación
   1:
    vocabulary_id:
    state: active
    display_name: assignmen
    id: 23e8b795-c184-4b78-a785-0aeb3d2884a1
    name: assignmen
   2:
    vocabulary_id:
    state: active
    display_name: dissertation
    id: 3dfbeb08-3395-459f-b3eb-73cbeca53de6
    name: dissertation
   3:
    vocabulary_id:
    state: active
    display_name: essay
    id: e30a3f0e-2aa5-402a-b477-592bd275cb64
    name: essay
  groups:
  license_id: cc-by
  relationships_as_subject:
  organization:
  name: the-academic-papers-uk
  isopen: 1
  url: https://www.theacademicpapers.co.uk
  notes: The Academic Papers UK is the most reliable academic writing help provider company that assists students in writing their dissertations, coursework, thesis, assignments and all other academic writing tasks.
  owner_org:
  extras:
  license_url: http://www.opendefinition.org/licenses/cc-by
  title: The Academic Papers UK
  revision_id: 9ba02786-5e08-4f06-9290-805df7d30c34
 6:
  license_title:
  maintainer:
  relationships_as_object:
  private:
  maintainer_email:
  num_tags: 2
  id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
  metadata_created: 2020-04-16T06:58:41.459864
  metadata_modified: 2020-04-16T07:00:45.510710
  author:
  author_email:
  state: active
  version:
  creator_user_id: 91dc2a12-8b8f-43aa-ac5e-b47b92a97c36
  type: dataset
  resources:
   0:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Vote Compass Questions and Answer Key
    format: CSV
    url: https://data.gov.au/dataset/a4051be1-8236-44a6-b150-2998c7d4d11f/resource/fe4a364c-d832-4e88-8589-98ba57fcce51/download/votecompassquestions.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.914997
    state: active
    mimetype_inner:
    last_modified:
    position: 0
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 0ff1923a-ca62-4b04-b96b-285b3e76bf00
    resource_type:
    size:
   1:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: The national budget deficit should be reduced, even if it means fewer public services.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:20:44.1000/q01-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915010
    state: active
    mimetype_inner:
    last_modified:
    position: 1
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 29a895be-6ee8-45b7-b5d1-b4bf71eff9db
    resource_type:
    size:
   2:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: When there is an economic problem government spending usually makes it worse.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:20:56.1000/q02-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915016
    state: active
    mimetype_inner:
    last_modified:
    position: 2
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 114ead31-677e-441b-9820-c5b34ee932bb
    resource_type:
    size:
   3:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: How much should the government spend on defence ?
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:21:09.1000/q03-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915021
    state: active
    mimetype_inner:
    last_modified:
    position: 3
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 9bb20b1b-7389-42ae-a348-f14eea05be56
    resource_type:
    size:
   4:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: How much federal government funding should there be for universities ?
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:21:22.1000/q04-selfplacement.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915026
    state: active
    mimetype_inner:
    last_modified:
    position: 4
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 0b0a8a36-b7b1-4da6-b883-abb1bfe7e1b4
    resource_type:
    size:
   5:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Students in government and non-government schools should receive the same amount of federal funding.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:21:34.1000/q05-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915031
    state: active
    mimetype_inner:
    last_modified:
    position: 5
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: e6c63696-e352-44b0-bca2-0993841eeb6b
    resource_type:
    size:
   6:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: The federal government should put a price on carbon.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:21:46.1000/q06-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915036
    state: active
    mimetype_inner:
    last_modified:
    position: 6
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 92250275-1837-4e45-aa52-c7968f1a0169
    resource_type:
    size:
   7:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: How much should the federal government do to tackle climate change ?
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:21:58.1000/q07-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915041
    state: active
    mimetype_inner:
    last_modified:
    position: 7
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 650a8ccb-c221-4879-bc3c-63aa8f4f5e3e
    resource_type:
    size:
   8:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: The government should further restrict foreign ownership of Australian agricultural land.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:22:10.1000/q08-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915046
    state: active
    mimetype_inner:
    last_modified:
    position: 8
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 0009b74d-5c9c-414a-81d5-b08fdb6d11db
    resource_type:
    size:
   9:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Australia should spend more on foreign aid.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:22:22.1000/q09-selfplacement.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915050
    state: active
    mimetype_inner:
    last_modified:
    position: 9
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: d25a3d1e-0913-4eda-b901-6081cc441ec2
    resource_type:
    size:
   10:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Live animal exports should be banned.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:22:35.1000/q10-selfplacement.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915055
    state: active
    mimetype_inner:
    last_modified:
    position: 10
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: a5f91c52-862d-4012-8a81-5ea3046203c1
    resource_type:
    size:
   11:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Medicare should offer basic dental care for everyone, even if people have to pay a higher Medicare levy.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:22:47.1000/q11-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915059
    state: active
    mimetype_inner:
    last_modified:
    position: 11
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: c8fc9817-8c7e-434b-beeb-e00017e3a93a
    resource_type:
    size:
   12:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Private health insurance rebates should depend on income.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:23:00.1000/q12-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915064
    state: active
    mimetype_inner:
    last_modified:
    position: 12
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: b20ea155-4946-4d1d-8933-ed491c215e4a
    resource_type:
    size:
   13:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: How many new immigrants should Australia admit ?
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:23:13.1000/q13-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915069
    state: active
    mimetype_inner:
    last_modified:
    position: 13
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 85caf8a8-d2da-4fc1-b54d-25ceb13e1f29
    resource_type:
    size:
   14:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Boats carrying asylum seekers should be turned back.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:23:26.1000/q14-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915074
    state: active
    mimetype_inner:
    last_modified:
    position: 14
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 709eff05-1bc9-4d14-930a-1d815fad66b9
    resource_type:
    size:
   15:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Asylum seekers who arrive by boat should not be allowed to settle in Australia.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:23:39.1000/q15-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915079
    state: active
    mimetype_inner:
    last_modified:
    position: 15
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 64c61da1-4912-421b-a6ca-5592db42e0fe
    resource_type:
    size:
   16:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: There should be more restrictions on 457 visas issued to temporary foreign workers.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:23:52.1000/q16-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915083
    state: active
    mimetype_inner:
    last_modified:
    position: 16
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: c05cc8e3-99ae-4a3e-b8b9-a1c376294a4e
    resource_type:
    size:
   17:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: The Australian constitution should recognise indigenous people as Australia’s first inhabitants.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:24:05.1000/q17-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915088
    state: active
    mimetype_inner:
    last_modified:
    position: 17
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 31250ca1-e527-428b-bb34-a5fcd63de226
    resource_type:
    size:
   18:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Trade unions have too much power in the workplace.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:24:20.1000/q18-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915092
    state: active
    mimetype_inner:
    last_modified:
    position: 18
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: e4ef41fa-6b7f-4dda-8c70-bbdec326bfb0
    resource_type:
    size:
   19:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Workplace protections have gone too far.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:24:33.1000/q19-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915097
    state: active
    mimetype_inner:
    last_modified:
    position: 19
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: f73571f9-a773-47af-80f2-47f0442c9ba9
    resource_type:
    size:
   20:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: The Commonwealth should pass laws requiring more women in senior positions.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:24:46.1000/q20-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915102
    state: active
    mimetype_inner:
    last_modified:
    position: 20
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: c47ca2d7-6f94-43c9-9510-b16e4082689a
    resource_type:
    size:
   21:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: The National Broadband Network should deliver faster speeds even if it costs more.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:25:02.1000/q21-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915106
    state: active
    mimetype_inner:
    last_modified:
    position: 21
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 5f7bcfef-4b92-427a-841b-becfa2fa702e
    resource_type:
    size:
   22:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: How much financial support should the Commonwealth provide to the car industry ?
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:25:34.1000/q22-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915111
    state: active
    mimetype_inner:
    last_modified:
    position: 22
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 1e9c42de-7dd6-47bf-92ef-ebf892130925
    resource_type:
    size:
   23:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: How much tax should mining companies pay ?
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:25:50.1000/q23-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915115
    state: active
    mimetype_inner:
    last_modified:
    position: 23
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 50121078-763e-49be-94bc-88224c515b92
    resource_type:
    size:
   24:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: There should be fewer restrictions on coal seam gas exploration.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:26:04.1000/q24-selfplacement.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915119
    state: active
    mimetype_inner:
    last_modified:
    position: 24
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: c90bf8dc-c336-4a45-a557-1e677adf048f
    resource_type:
    size:
   25:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: The government’s parental leave pay should be the same for all working mothers.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:26:18.1000/q25-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915124
    state: active
    mimetype_inner:
    last_modified:
    position: 25
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 2cd8d674-a06f-47ba-8ddb-7d99c7d0823a
    resource_type:
    size:
   26:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Marriage should only be between a man and a woman.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:26:32.1000/q26-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915129
    state: active
    mimetype_inner:
    last_modified:
    position: 26
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 7e2b6dce-b799-45a4-8216-8d0ae4992791
    resource_type:
    size:
   27:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Terminally ill patients should be able to legally end their own lives with medical assistance.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:26:46.1000/q27-selfplacement.csv
    datastore_active: 1
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915134
    state: active
    mimetype_inner:
    last_modified:
    position: 27
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: bb864159-5b2a-48a4-82c2-de4839298471
    resource_type:
    size:
   28:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: How accessible should abortion services be in Australia ?
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:27:00.1000/q28-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915139
    state: active
    mimetype_inner:
    last_modified:
    position: 28
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: d17fe436-c5bb-41d8-93dd-193a45ff5231
    resource_type:
    size:
   29:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: Australia should end the monarchy and become a republic.
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:27:14.1000/q29-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915144
    state: active
    mimetype_inner:
    last_modified:
    position: 29
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 86244c4a-6101-4fb7-b9f5-c4754a1f5450
    resource_type:
    size:
   30:
    mimetype:
    cache_url:
    hash:
    description: CSV
    name: How much government regulation should there be on business ?
    format: CSV
    url: http://data.gov.au/storage/f/2014-04-17T15:27:30.1000/q30-selfplacement.csv
    datastore_active:
    cache_last_updated:
    package_id: 9bd2e9a1-bbe5-46fb-b16c-58a3737f9a31
    created: 2020-04-16T07:00:45.915148
    state: active
    mimetype_inner:
    last_modified:
    position: 30
    revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
    url_type:
    id: 67dfe562-39b3-4aa5-9adb-80d6a31b8862
    resource_type:
    size:
  num_resources: 31
  tags:
   0:
    vocabulary_id:
    state: active
    display_name: elections
    id: cd6ef41f-e985-485d-b8f0-81977ee43898
    name: elections
   1:
    vocabulary_id:
    state: active
    display_name: votecompass
    id: 72df5f4b-487c-4304-b3bb-dfa6baba4f10
    name: votecompass
  groups:
  license_id:
  relationships_as_subject:
  organization:
  name: vote-compass-2013-self-placement-in0hkywzt
  isopen:
  url: http://minikube.data.gov.au:30100/dataset/ds-dga-a4051be1-8236-44a6-b150-2998c7d4d11f/details
  notes: Responses to Vote Compass questionnaire gathered prior to the 2013 federal election aggregated by self placement.
  owner_org:
  extras:
  title: Vote Compass 2013 - Self Placement Test
  revision_id: 8bd781f7-ec80-416c-b592-4b06003ddd98
search_facets:

Twitter API

L’exemple de l’API Twitter est intéressant, car c’est une API qui ne peut être intérrogée qu’au moyen d’un processus d’authentification OAuth, et non simplement en interrogeant une URL.

Nous utilisons pour ce faire le plugin Twitter pour SPIP qui intègre une méthode twitter pour la boucle (DATA).

Il devient alors aussi facile d’interroger Twitter à travers son API propriétaire que d’utiliser une simple API en REST :

Le code

Le résultat

Aucun résultat