|
176 | 176 | "\n",
|
177 | 177 | "# All of these are equivalent:\n",
|
178 | 178 | "loader = Loader(polis_id=\"r7dr5tzke7pbpbajynkv8\", data_source=\"csv_export\")\n",
|
179 |
| - "loader = Loader(directory_url=\"https://pol.is/api/v3/reportExport/r7dr5tzke7pbpbajynkv8/\")\n", |
| 179 | + "# Doesn't work for now. See: https://github.com/polis-community/red-dwarf/issues/56\n", |
| 180 | + "# loader = Loader(directory_url=\"https://pol.is/api/v3/reportExport/r7dr5tzke7pbpbajynkv8/\")\n", |
180 | 181 | "\n",
|
181 | 182 | "# math_data and conversation_data only populate from the \"api\" data_source.\n",
|
182 | 183 | "assert_fully_populated(loader, ignore=[\"math_data\", \"conversation_data\"])\n",
|
|
314 | 315 | "# The loader will look for files with these names:\n",
|
315 | 316 | "# - comments.csv\n",
|
316 | 317 | "# - votes.csv\n",
|
317 |
| - "loader = Loader(directory_url=\"https://raw.githubusercontent.com/compdemocracy/openData/refs/heads/master/scoop-hivemind.ubi/\")\n", |
| 318 | + "# Doesn't work for now. See: https://github.com/polis-community/red-dwarf/issues/56\n", |
| 319 | + "# loader = Loader(directory_url=\"https://raw.githubusercontent.com/compdemocracy/openData/refs/heads/master/scoop-hivemind.ubi/\")\n", |
318 | 320 | "\n",
|
319 | 321 | "assert_fully_populated(loader, ignore=[\"math_data\", \"conversation_data\"])\n",
|
320 | 322 | "print_summary(loader)"
|
|
420 | 422 | "source": [
|
421 | 423 | "# By default, the Loader imports data from the https://pol.is API.\n",
|
422 | 424 | "# You can also choose to import data from an alternative instance.\n",
|
423 |
| - "Loader(polis_instance_url=\"https://preprod.pol.is\", polis_id=\"r7kfpvrhdpyykbhnirtcd\")\n", |
| 425 | + "Loader(polis_instance_url=\"https://polis.tw\", polis_id=\"r7xrbjj7brcxmcfmeun2u\")\n", |
424 | 426 | "\n",
|
425 | 427 | "assert_fully_populated(loader, ignore=[\"math_data\", \"conversation_data\"])\n",
|
426 | 428 | "print_summary(loader)"
|
|
0 commit comments