Skip to content

Instantly share code, notes, and snippets.

@versae
Last active August 29, 2015 14:02
Show Gist options
  • Save versae/c24b9db0112099c0581f to your computer and use it in GitHub Desktop.
Save versae/c24b9db0112099c0581f to your computer and use it in GitHub Desktop.
Get total counts for different media from WorldCat
year books music newspapers scores videos
1002 30 5 5 5
1003 45 2 1 1
1004 49 7 6 3
1005 57 5 5 5
1006 59 4 2 4
1007 83 5 1 3
1008 45 5 2 19
1009 63 6 6 4
1010 68 5 1 7
1011 38 38 2 1
1012 54 5 2 3
1013 34 34 1 2
1014 14 2 1 1
1015 6 6 1 6
1016 11 11 2 11
1017 11 11 1 11
1018 7 7 7 7
1019 13 3 3 3
1020 49 2 1 1
1021 22 22 22 22
1022 26 26 26 26
1023 12 12 12 12
1024 22 1 3 1
1025 24 1 7 1
1027 15 15 15 15
1028 40 40 40 40
1029 8 8 1 8
1030 45 3 15 1
1031 29 29 4 29
1032 50 1 3 1
1033 9 9 1 9
1034 14 14 14 14
1035 11 11 3 11
1036 19 19 3 19
1037 24 24 24 24
1038 13 13 2 1
1039 16 16 2 1
1040 46 2 2 2
1041 42 42 1 42
1042 22 1 2 1
1043 12 1 2 1
1044 8 3 1 3
1045 15 1 3 1
1046 15 15 5 15
1047 21 1 2 1
1048 16 6 1 2
1049 15 15 1 1
1050 118 8 18 1
1052 30 30 2 30
1053 22 22 1 22
1054 19 2 5 1
1055 19 19 19 19
1056 22 22 1 22
1057 26 26 26 26
1058 31 5 5 5
1059 25 1 2 1
1060 103 7 13 3
1061 57 1 3 1
1062 53 1 1 1
1063 48 1 1 1
1064 54 2 1 1
1065 46 2 2 2
1066 60 3 4 3
1067 47 1 5 1
1068 51 1 3 1
1069 67 67 4 67
1070 169 7 14 2
1071 68 2 2 2
1072 51 3 6 1
1073 48 5 2 1
1074 50 1 2 1
1075 97 1 8 1
1077 45 45 1 45
1078 50 1 1 1
1079 46 2 2 2
1080 77 2 2 2
1081 51 3 2 3
1082 50 7 2 1
1083 48 48 3 1
1084 54 4 4 3
1085 60 1 2 2
1086 51 1 1 1
1087 38 38 2 1
1088 32 2 2 2
1089 37 3 2 2
1090 64 64 3 1
1091 37 37 3 37
1092 44 44 1 44
1093 33 33 33 33
1094 29 1 2 2
1095 36 36 3 36
1096 31 31 2 31
1097 34 34 1 1
1098 39 1 4 1
1099 21 4 3 1
1100 1901 1901 261 1901
1102 5 5 5 5
1103 6 6 1 6
1104 4 4 4 4
1105 8 8 1 8
1106 9 9 9 9
1107 3 3 3 3
1108 12 1 1 1
1109 9 9 9 9
1110 35 1 1 1
1111 109 109 2 1
1112 19 19 19 19
1113 9 9 9 9
1114 2 2 2 2
1115 10 10 1 10
1116 8 8 8 8
1117 1 1 1 1
1118 5 5 5 5
1119 6 6 1 6
1120 52 52 1 52
1121 15 1 1 1
1122 8 8 2 8
1123 9 9 9 9
1124 7 1 1 1
1125 33 33 2 33
1127 23 23 23 23
1128 7 7 7 7
1129 5 5 5 5
1130 16 1 3 1
1131 8 8 2 8
1132 6 2 2 2
1133 10 10 10 10
1134 5 1 1 1
1135 10 10 3 10
1136 6 1 1 1
1137 3 3 3 3
1138 3 3 3 3
1139 10 10 10 10
1140 16 16 1 16
1141 4 2 2 2
1142 5 5 5 5
1143 10 10 10 10
1144 8 8 8 8
1145 13 13 13 13
1146 4 4 4 4
1147 8 8 8 8
1148 6 6 6 6
1149 8 1 1 1
1150 244 2 14 2
1152 9 9 9 9
1153 13 2 1 2
1154 9 1 1 1
1155 9 1 1 1
1156 9 1 1 1
1157 7 7 1 7
1158 6 6 1 6
1159 7 7 7 7
1160 23 2 2 2
1161 8 1 1 1
1162 15 1 1 1
1163 9 1 1 1
1164 15 15 15 15
1165 14 14 14 14
1166 7 7 7 7
1167 3 1 1 1
1168 8 8 8 8
1169 7 7 1 7
1170 24 24 1 24
1171 14 14 14 14
1172 7 2 2 2
1173 19 19 4 19
1174 15 15 1 15
1175 69 69 9 69
1177 12 12 12 12
1178 13 13 13 13
1179 11 11 11 11
1180 36 36 36 36
1181 12 12 12 12
1182 10 10 10 10
1183 16 16 16 16
1184 14 14 1 14
1185 22 22 22 22
1186 21 2 2 2
1187 41 41 1 41
1188 29 29 1 29
1189 41 41 41 41
1190 111 2 4 2
1191 68 68 2 3
1192 72 1 1 3
1193 68 68 4 1
1194 77 2 2 2
1195 88 2 3 1
1196 124 1 1 2
1197 140 4 6 5
1198 115 5 2 2
1199 91 11 2 2
1200 6817 9 267 8
1202 18 18 3 3
1203 9 1 1 1
1204 15 15 1 15
1205 7 1 1 1
1206 12 1 1 1
1207 11 3 1 3
1208 12 12 12 12
1209 6 1 1 1
1210 19 1 2 1
1211 6 6 6 6
1212 37 37 37 37
1213 17 2 2 2
1214 10 1 1 1
1215 20 20 20 20
1216 14 14 1 14
1217 10 10 10 10
1218 13 13 1 13
1219 21 21 1 1
1220 58 58 2 58
1221 22 22 22 22
1222 9 9 2 9
1223 22 22 22 22
1224 12 1 1 1
1225 58 1 8 1
1227 11 11 11 11
1228 11 11 2 11
1229 12 12 12 12
1230 55 55 6 55
1231 7 1 1 1
1232 21 21 21 21
1233 21 21 2 21
1234 16 16 16 16
1235 38 38 38 38
1236 13 13 1 13
1237 19 19 19 19
1238 19 19 19 19
1239 13 2 2 2
1240 98 98 8 98
1241 15 2 2 2
1242 8 8 8 8
1243 14 14 14 14
1244 18 18 1 18
1245 19 19 1 19
1246 14 14 14 14
1247 16 16 16 16
1248 23 23 1 23
1249 18 1 2 1
1250 293 293 22 293
1252 20 20 20 20
1253 41 41 2 41
1254 28 28 2 28
1255 30 1 1 1
1256 37 37 37 37
1257 61 61 2 61
1258 41 41 1 41
1259 29 1 1 1
1260 98 1 3 1
1261 44 44 5 44
1262 49 49 3 49
1263 48 1 1 1
1264 41 41 1 41
1265 56 56 1 56
1266 63 63 2 63
1267 62 62 62 62
1268 94 94 94 94
1269 61 61 1 61
1270 102 1 9 1
1271 75 75 75 75
1272 81 81 81 81
1273 52 52 1 52
1274 49 49 49 49
1275 209 209 6 209
1277 76 76 76 76
1278 52 52 1 52
1279 72 72 72 72
1280 175 1 5 1
1281 86 86 86 86
1282 118 118 118 118
1283 73 73 73 73
1284 102 102 102 102
1285 120 120 120 120
1286 143 143 143 143
1287 115 1 1 1
1288 99 2 1 2
1289 152 152 152 152
1290 170 2 5 2
1291 140 140 1 140
1292 127 1 1 1
1293 98 1 1 1
1294 108 2 2 2
1295 75 1 1 1
1296 101 101 2 101
1297 110 1 1 1
1298 106 2 2 2
1299 136 136 136 136
1300 10057 1 271 1
1302 174 174 174 174
1303 154 154 154 154
1304 206 206 206 206
1305 183 183 183 183
1306 189 189 189 189
1307 189 189 3 3
1308 194 194 1 194
1309 137 137 137 137
1310 182 182 5 1
1311 189 189 189 189
1312 158 1 1 1
1313 160 1 1 1
1314 168 1 5 1
1315 224 224 1 224
1316 217 217 2 217
1317 216 216 1 216
1318 177 177 177 177
1319 200 1 1 1
1320 180 180 180 180
1321 188 188 188 188
1322 174 174 174 174
1323 186 186 1 186
1324 281 1 1 1
1325 360 360 7 360
1327 289 289 289 289
1328 285 285 1 285
1329 358 1 1 1
1330 336 336 3 336
1331 284 2 2 2
1332 246 246 1 246
1333 170 3 3 3
1334 156 1 1 1
1335 182 4 2 4
1336 126 126 126 126
1337 102 102 1 102
1338 151 151 151 151
1339 126 126 1 126
1340 243 243 2 243
1341 237 237 1 237
1342 266 1 1 1
1343 199 199 199 199
1344 204 1 2 1
1345 211 211 2 211
1346 199 2 2 2
1347 237 1 1 1
1348 243 2 2 2
1349 220 220 1 220
1350 512 1 37 1
1352 134 1 1 1
1353 172 172 172 172
1354 174 1 1 1
1355 147 147 147 147
1356 185 185 185 185
1357 282 282 282 282
1358 202 202 1 202
1359 157 157 157 157
1360 153 1 5 1
1361 163 163 163 163
1362 210 1 2 1
1363 152 152 152 152
1364 92 92 2 92
1365 118 118 1 118
1366 115 115 115 115
1367 169 1 1 1
1368 466 1 1 1
1369 112 112 112 112
1370 147 147 6 147
1371 129 129 3 129
1372 87 87 1 87
1373 113 113 113 113
1374 100 100 100 100
1375 196 1 7 1
1377 145 145 145 145
1378 166 166 166 166
1379 175 175 175 175
1380 237 237 5 237
1381 187 187 3 187
1382 176 176 176 176
1383 158 158 1 158
1384 150 150 1 150
1385 124 124 1 124
1386 135 135 135 135
1387 197 197 1 197
1388 120 120 120 120
1389 138 138 138 138
1390 143 143 8 143
1391 121 121 121 121
1392 137 137 1 137
1393 101 1 1 1
1394 108 108 1 108
1395 108 108 2 108
1396 89 89 2 89
1397 155 155 1 155
1398 124 124 2 124
1399 94 94 1 94
1400 18031 1 454 1
1402 134 134 1 134
1403 127 1 1 1
1404 112 112 112 112
1405 119 1 4 1
1406 63 63 63 63
1407 67 67 67 67
1408 72 72 72 72
1409 87 87 2 87
1410 122 122 6 122
1411 65 65 4 65
1412 65 65 1 65
1413 81 81 5 81
1414 121 121 1 121
1415 104 104 3 104
1416 75 75 2 75
1417 76 76 1 76
1418 89 89 2 89
1419 112 112 2 112
1420 186 186 22 186
1421 103 1 1 1
1422 154 154 1 154
1423 88 88 3 88
1424 96 96 96 96
1425 302 302 12 302
1427 90 90 90 90
1428 109 109 109 109
1429 111 111 1 111
1430 186 186 29 186
1431 121 121 1 121
1432 97 97 2 97
1433 119 119 1 119
1434 89 89 1 89
1435 100 100 2 100
1436 203 203 2 203
1437 228 228 228 228
1438 137 137 137 137
1439 176 176 176 176
1440 366 366 20 366
1441 143 143 1 143
1442 140 140 2 140
1443 149 149 1 149
1444 144 144 144 144
1445 189 189 2 189
1446 195 195 1 195
1447 171 171 171 171
1448 142 142 11 142
1449 182 182 1 182
1450 1351 1351 87 1351
1452 265 265 2 265
1453 298 1 1 1
1454 388 388 2 388
1455 484 3 3 3
1456 350 1 1 1
1457 468 1 1 1
1458 514 3 4 3
1459 669 669 5 669
1460 1200 1 35 1
1461 1027 1 7 1
1462 1453 1 1 1
1463 1600 2 3 2
1464 3014 3014 2 3014
1465 5138 1 4 1
1466 7127 1 1 1
1467 6868 6868 6868 6868
1468 6374 6374 6374 6374
1469 5454 5454 5 5454
1470 5299 5299 31 5299
1471 1449 1449 1449 1449
1472 1750 1750 1 1750
1473 1927 1 3 1
1474 2073 2073 2073 2073
1475 3384 3384 18 3384
1477 2371 2371 6 2371
1478 2336 2336 2336 2336
1479 1580 1580 1 1580
1480 3299 3299 34 3299
1481 2494 2494 5 2494
1482 4536 1 3 1
1483 2673 2673 1 2673
1484 1948 1948 5 1948
1485 3263 1 6 1
1486 2461 2461 2 2461
1487 2466 2 7 2
1488 2953 1 8 1
1489 2761 1 1 1
1490 4492 1 44 1
1491 2833 3 4 3
1492 3327 1 26 1
1493 3525 3525 4 3525
1494 3448 3448 5 3448
1495 4275 4275 12 4275
1496 3469 5 5 5
1497 3727 3727 1 3727
1498 3784 3784 16 3784
1499 3726 3726 4 3726
1500 22186 1 19135 2
1502 3941 3941 19 3941
1503 3781 3781 44 3781
1504 3310 1 29 1
1505 4735 1 57 1
1506 4050 4050 25 4050
1507 4305 4305 34 4305
1508 4660 4660 41 4660
1509 4660 1 19 1
1510 6430 1 50 1
1511 4619 4619 21 4619
1512 5333 5333 36 5333
1513 5458 5458 21 5458
1514 5681 5681 26 5681
1515 6764 6764 64 6764
1516 6520 1 33 1
1517 5882 5882 23 3
1518 6951 6951 25 6951
1519 7605 7605 32 2
1520 10428 10428 113 10428
1521 8814 8814 47 1
1522 8249 8249 10 8249
1523 9143 9143 20 1
1524 9037 9037 15 9037
1525 8644 8644 52 8644
1527 6189 6189 23 6189
1528 6567 6567 39 1
1529 7117 7117 56 7117
1530 9317 9317 128 1
1531 7278 7278 43 1
1532 7039 7039 78 7039
1533 7084 7084 40 4
1534 7368 7368 73 2
1535 8007 8007 100 1
1536 7846 1 83 1
1537 7555 7555 66 7555
1538 8764 8764 124 8764
1539 8585 8585 147 8585
1540 10329 10329 182 10329
1541 8417 1 133 1
1542 8853 1 134 1
1543 9153 1 111 1
1544 9329 9329 141 9329
1545 9957 1 205 1
1546 10631 10631 176 1
1547 8063 8063 121 8063
1548 9653 9653 70 9653
1549 10917 1 196 1
1550 15994 15994 250 1
1552 10537 10537 162 10537
1553 10326 10326 165 10326
1554 10953 10953 144 10953
1555 11971 11971 191 11971
1556 12188 12188 177 3
1557 10769 1 146 2
1558 11582 11582 146 11582
1559 11473 11473 187 1
1560 14431 14431 159 14431
1561 12732 12732 107 12732
1562 13279 13279 143 13279
1563 11883 11883 124 2
1564 12082 12082 153 12082
1565 11669 3 166 3
1566 13203 1 169 1
1567 11969 11969 179 1
1568 11376 11376 164 1
1569 10599 10599 190 1
1570 12823 3 242 3
1571 11143 1 176 1
1572 12249 12249 111 4
1573 12204 1 193 1
1574 12247 1 131 1
1575 13136 13136 204 13136
1577 10845 10845 98 10845
1578 12052 1 178 2
1579 11586 11586 143 1
1580 14365 1 242 1
1581 13612 1 170 1
1582 12730 1 172 4
1583 12646 1 239 1
1584 16063 16063 179 2
1585 14818 14818 231 1
1586 15059 15059 218 1
1587 14525 14525 234 2
1588 16530 1 262 3
1589 15937 15937 201 1
1590 15166 1 250 2
1591 13444 13444 181 2
1592 13567 2 161 2
1593 13636 13636 143 13636
1594 14547 14547 198 1
1595 15213 15213 176 1
1596 15941 15941 179 1
1597 15201 15201 205 15201
1598 16062 2 184 2
1599 15930 15930 176 1
1600 47010 4 2022 6
1602 16937 16937 174 16937
1603 17013 17013 192 17013
1604 16737 1 231 1
1605 16664 16664 186 16664
1606 19037 1 212 1
1607 17347 17347 279 4
1608 19086 1 263 1
1609 20779 20779 2.0 267 20779
1610 22993 1 319 1
1611 19126 19126 260 19126
1612 21290 1 209 1
1613 18865 2 235 2
1614 20957 2 195 2
1615 22949 22949 309 22949
1616 20526 20526 208 20526
1617 22136 1 204 1
1618 22721 22721 219 22721
1619 24732 24732 1.0 222 24732
1620 26251 26251 1.0 272 1
1621 23183 1 186 1
1622 20421 1 189 2
1623 18008 18008 3.0 179 18008
1624 17951 17951 4.0 205 17951
1625 19439 19439 178 19439
1627 15687 15687 3.0 157 15687
1628 17673 1 193 1
1629 17410 1 141 1
1630 20058 20058 1.0 178 20058
1631 17539 17539 11.0 77 1
1632 15280 15280 1.0 73 15280
1633 15314 15314 1.0 67 15314
1634 15082 15082 76 2
1635 14478 14478 94 1
1636 13654 13654 2.0 98 13654
1637 13870 13870 1.0 114 13870
1638 14573 14573 1.0 106 14573
1639 13734 13734 80 13734
1640 18299 1 5.0 166 3
1641 21603 21603 6.0 139 1
1642 26406 26406 28.0 132 26406
1643 22369 22369 37.0 92 1
1644 22480 22480 27.0 85 22480
1645 19964 19964 23.0 163 1
1646 20838 20838 9.0 90 20838
1647 21703 1 35.0 71 1
1648 24200 1 36.0 111 1
1649 34049 1 37.0 95 1
1650 29543 29543 12.0 495 29543
1652 28261 1 11.0 103 1
1653 20204 4 7.0 65 4
1654 20176 20176 10.0 79 20176
1655 21137 1 4.0 100 1
1656 20864 1 3.0 103 1
1657 20486 2 4.0 120 1
1658 21718 21718 4.0 105 21718
1659 23671 23671 12.0 102 23671
1660 30399 30399 22.0 200 30399
1661 23855 23855 9.0 95 2
1662 22831 1 2.0 123 1
1663 23404 23404 10.0 109 1
1664 24631 1 2.0 112 3
1665 24486 24486 6.0 105 24486
1666 21786 21786 6.0 132 21786
1667 21247 21247 2.0 115 21247
1668 22939 2 1.0 139 1
1669 22713 22713 118 22713
1670 25463 25463 2.0 363 25463
1671 21186 21186 1.0 88 21186
1672 25634 25634 5.0 98 25634
1673 22443 1 2.0 105 1
1674 21956 21956 3.0 105 1
1675 24090 24090 4.0 148 3
1677 22246 22246 4.0 109 22246
1678 22503 22503 12.0 163 22503
1679 25077 25077 24.0 104 25077
1680 28684 28684 41.0 331 2
1681 24084 24084 31.0 132 24084
1682 23586 23586 14.0 173 2
1683 23352 23352 6.0 146 23352
1684 25540 25540 2.0 129 25540
1685 26586 26586 3.0 235 26586
1686 22340 2 2.0 155 3
1687 22451 22451 3.0 272 22451
1688 28219 28219 10.0 185 28219
1689 26654 26654 19.0 169 2
1690 28424 1 16.0 452 3
1691 22335 22335 10.0 121 22335
1692 22700 22700 9.0 263 1
1693 23475 23475 6.0 174 3
1694 21881 21881 10.0 156 21881
1695 24859 1 20.0 308 2
1696 24887 24887 14.0 251 1
1697 25391 2 10.0 238 1
1698 26551 26551 4.0 221 26551
1699 27012 1 11.0 198 1
1700 91693 8 260.0 7708 6
1702 26288 26288 16.0 230 4
1703 23531 23531 7.0 394 1
1704 25330 25330 17.0 280 25330
1705 24610 1 15.0 452 1
1706 23973 23973 6.0 272 2
1707 25444 25444 11.0 208 25444
1708 24862 24862 8.0 257 2
1709 24420 24420 17.0 241 1
1710 30034 30034 30.0 789 2
1711 25153 25153 23.0 238 25153
1712 25825 1 5.0 256 1
1713 24940 24940 11.0 196 24940
1714 27124 27124 10.0 235 27124
1715 28953 28953 31.0 568 28953
1716 27096 27096 21.0 321 27096
1717 29127 1 16.0 243 1
1718 26688 26688 14.0 196 26688
1719 27097 27097 28.0 181 2
1720 33794 33794 39.0 1184 2
1721 26783 26783 21.0 193 2
1722 27187 27187 15.0 239 27187
1723 28554 28554 14.0 394 28554
1724 27283 27283 26.0 353 27283
1725 29451 29451 19.0 739 3
1727 29180 29180 35.0 251 29180
1728 28372 28372 25.0 332 1
1729 28079 28079 16.0 347 4
1730 33715 33715 21.0 1463 2
1731 28409 28409 12.0 336 1
1732 30563 30563 26.0 480 2
1733 30619 1 8.0 429 2
1734 29166 29166 19.0 328 29166
1735 31288 31288 10.0 924 5
1736 29893 29893 17.0 307 29893
1737 30645 30645 12.0 359 30645
1738 30793 30793 10.0 423 30793
1739 31053 31053 13.0 369 31053
1740 38430 1 16.0 1812 1
1741 31798 31798 16.0 316 1
1742 29659 29659 20.0 477 2
1743 28732 1 15.0 429 3
1744 30793 30793 16.0 354 7
1745 32445 32445 25.0 940 2
1746 29935 29935 23.0 348 2
1747 30834 2 17.0 384 2
1748 32673 32673 10.0 527 32673
1749 31764 31764 19.0 336 31764
1750 45607 2 19.0 3188 2
1752 34167 34167 33.0 330 34167
1753 35081 35081 25.0 363 35081
1754 32605 32605 19.0 392 1
1755 34768 34768 28.0 786 7
1756 36354 36354 26.0 462 6
1757 33993 33993 21.0 439 2
1758 33134 33134 29.0 436 33134
1759 31843 31843 23.0 398 5
1760 39711 1 20.0 2423 6
1761 31956 1 10.0 567 5
1762 33630 1 29.0 640 1
1763 34132 1 26.0 844 2
1764 34213 1 28.0 580 1
1765 36683 1 29.0 1557 10
1766 35995 1 22.0 628 6
1767 37016 37016 24.0 661 2
1768 37260 37260 42.0 664 4
1769 37442 1 43.0 646 7
1770 45104 45104 37.0 4044 7
1771 38632 1 20.0 689 2
1772 39643 1 35.0 739 4
1773 37260 37260 39.0 806 9
1774 38826 38826 33.0 826 18
1775 44338 1 66.0 2741 28
1777 43006 1 46.0 885 6
1778 43046 43046 40.0 1039 1
1779 40285 2 34.0 1136 4
1780 52035 2 63.0 5565 6
1781 43296 1 49.0 945 2
1782 46189 2 32.0 1222 2
1783 44950 44950 56.0 1221 4
1784 48192 48192 95.0 1430 4
1785 52654 2 97.0 3525 1
1786 50711 1 74.0 1700 6
1787 54585 54585 82.0 1813 13
1788 58219 4 92.0 1816 6
1789 77162 77162 198.0 1577 3
1790 94910 6 166.0 8048 2
1791 74583 1 129.0 1456 1
1792 68436 1 161.0 1634 2
1793 67658 67658 140.0 1809 6
1794 56724 56724 124.0 2244 1
1795 57871 2 155.0 4266 2
1796 53524 1 130.0 2201 2
1797 57084 2 149.0 2294 3
1798 60383 1 162.0 2512 2
1799 53515 1 128.0 2289 2
1800 249209 65 7371.0 69438 11
1802 52036 3 133.0 2682 3
1803 51926 2 149.0 2783 10
1804 49663 2 138.0 2111 9
1805 49562 1 133.0 4837 3
1806 47762 1 114.0 2034 1
1807 44674 4 163.0 2263 6
1808 50952 3 211.0 2180 9
1809 46489 2 193.0 1972 2
1810 58804 3 226.0 9425 1
1811 46774 1 178.0 2103 1
1812 47445 1 161.0 2191 2
1813 47046 47046 214.0 1882 2
1814 53177 2 190.0 2051 5
1815 57005 2 187.0 5633 9
1816 57612 1 164.0 2406 2
1817 62411 1 201.0 2900 6
1818 67187 2 219.0 3008 4
1819 66323 66323 227.0 2777 4
1820 87144 3 432.0 13122 5
1821 70441 2 257.0 2720 2
1822 70609 1 269.0 3280 2
1823 70274 2 266.0 3779 2
1824 76371 3 311.0 3694 4
1825 81600 3 323.0 8173 1
1827 81028 1 391.0 3927 1
1828 86165 4 414.0 3745 6
1829 84849 2 387.0 3064 2
1830 102774 8 826.0 15163 4
1831 78622 2 562.0 2524 2
1832 80866 1 539.0 2748 3
1833 80983 3 553.0 3338 6
1834 85246 3 583.0 3610 4
1835 92135 3 554.0 7773 1
1836 92158 4 578.0 2945 1
1837 91747 2 590.0 3158 8
1838 93944 7 651.0 3503 2
1839 97894 4 807.0 3339 3
1840 123231 22 1370.0 18207 7
1841 99653 6 721.0 4334 3
1842 99513 6 642.0 5185 6
1843 101777 8 661.0 5527 1
1844 109046 8 847.0 6632 1
1845 116622 14 732.0 9586 2
1846 112809 10 732.0 6333 7
1847 110323 7 761.0 5588 4
1848 119483 11 1798.0 5201 11
1849 101329 10 953.0 4703 8
1850 151262 69 1613.0 24536 4
1852 119159 20 849.0 7489 4
1853 127604 11 823.0 8320 2
1854 128981 11 991.0 9750 3
1855 127947 20 1275.0 12334 2
1856 129732 12 1080.0 9509 12
1857 129623 25 1051.0 10210 7
1858 128008 19 1504.0 9932 8
1859 128664 13 1088.0 9835 2
1860 170077 84 1916.0 22589 5
1861 141047 13 1122.0 10954 16
1862 135797 16 881.0 10068 15
1863 138397 17 949.0 10670 26
1864 143691 16 1037.0 11638 8
1865 146552 9 1264.0 12959 28
1866 137624 14 1228.0 10706 2
1867 144972 18 1329.0 10039 3
1868 152076 13 1535.0 11317 10
1869 150115 22 1592.0 11509 4
1870 180528 89 2965.0 22645 9
1871 137938 10 1706.0 7484 3
1872 154594 10 1894.0 11502 3
1873 154555 6 1697.0 11663 1
1874 156601 13 1879.0 14040 2
1875 168527 46 1726.0 15329 3
1877 170501 37 1588.0 15205 4
1878 175279 16 1651.0 14837 3
1879 178047 13 1759.0 16017 2
1880 229068 232 3559.0 34342 8
1881 187282 15 1924.0 14336 6
1882 194835 14 1808.0 14672 8
1883 204938 18 1926.0 15621 7
1884 207825 20 1945.0 15033 6
1885 209516 41 2004.0 17244 11
1886 214310 34 2019.0 15521 13
1887 217076 32 2219.0 15638 6
1888 230369 34 2173.0 14389 12
1889 229059 33 2132.0 13299 4
1890 287021 1056 3813.0 37004 14
1891 235352 87 2020.0 13338 9
1892 245720 88 2162.0 16596 1
1893 247978 91 1900.0 16945 15
1894 242544 87 2126.0 18709 65
1895 255137 90 1954.0 20934 34
1896 261249 515 1879.0 18826 48
1897 260930 366 1703.0 19004 88
1898 270521 682 1846.0 19489 120
1899 274070 408 1854.0 20206 69
1900 1123186 739775 19104.0 257669 65971
1902 278308 1715 1601.0 22037 156
1903 288832 1374 1668.0 22467 271
1904 298183 2487 1684.0 23556 214
1905 305329 3235 1738.0 25899 186
1906 309234 2568 1820.0 23459 151
1907 321323 2301 1585.0 27999 139
1908 337454 2757 1611.0 27342 140
1909 347495 2654 1638.0 27902 170
1910 413177 4957 2461.0 44942 583
1911 374734 1806 1582.0 27733 504
1912 397429 2089 1577.0 28919 403
1913 400728 2417 1535.0 28701 345
1914 366457 1966 1686.0 25401 506
1915 305865 1964 1473.0 22017 538
1916 298901 2017 1314.0 19169 725
1917 293842 2524 1424.0 19062 699
1918 283720 1990 1881.0 19745 814
1919 331896 2106 1987.0 22880 1174
1920 435480 6818 2232.0 41562 1702
1921 362004 2681 1374.0 21845 727
1922 403626 2746 1360.0 23262 554
1923 403123 3653 1334.0 26073 586
1924 424177 2850 1366.0 26413 708
1925 478352 3478 1366.0 28875 1025
1927 474415 4793 1265.0 27588 1849
1928 490268 4582 1266.0 26548 1283
1929 494176 4550 1248.0 25913 1714
1930 570341 13306 2066.0 39317 4487
1931 475103 3311 1251.0 22897 1588
1932 446786 2777 1337.0 22320 1678
1933 440578 2350 1350.0 21272 1827
1934 464352 2493 1207.0 23258 2025
1935 503644 3763 1377.0 24966 2255
1936 515375 3387 1397.0 25090 2463
1937 520734 3743 1278.0 24619 2322
1938 512871 4077 1111.0 24325 2304
1939 492853 4989 1202.0 24383 2393
1940 481927 18679 2215.0 28319 3826
1941 416132 5014 1159.0 18269 2636
1942 399230 4015 1085.0 20783 2686
1943 388690 2489 1093.0 20988 2258
1944 371770 3548 1534.0 18572 2484
1945 398349 4881 2264.0 18437 3148
1946 510606 5474 1933.0 23783 3205
1947 555048 6662 1342.0 28536 2563
1948 584486 9345 1261.0 28592 2925
1949 594920 6901 1639.0 29827 2884
1950 697488 53698 1826.0 51615 5716
1952 557307 9127 1115.0 34082 4677
1953 591232 9095 966.0 34627 4837
1954 622150 10954 857.0 35156 5115
1955 671066 13282 896.0 38755 6088
1956 704538 12382 990.0 38131 6686
1957 742341 14368 881.0 38258 6668
1958 804480 20386 945.0 41164 6491
1959 849757 20606 1022.0 41476 6845
1960 1028175 78863 1874.0 58793 12472
1961 1000893 20164 1057.0 40646 7179
1962 1071608 21339 1033.0 39881 7553
1963 1143742 22385 1097.0 40377 7692
1964 1231118 19660 1194.0 42271 8220
1965 1332847 20649 1276.0 45614 8781
1966 1422379 20116 1238.0 44501 8984
1967 1525479 24771 1477.0 43341 9891
1968 1662768 24437 1531.0 46908 10196
1969 1724837 22866 1547.0 43118 11371
1970 1924581 77471 2532.0 61875 24996
1971 1793618 25730 1638.0 40690 14292
1972 1821496 32294 1552.0 41632 15921
1973 1838531 35954 1607.0 41967 17951
1974 1832837 35668 1464.0 41422 20219
1975 1893078 46645 1543.0 43778 20075
1977 1859969 57436 1689.0 45238 19740
1978 1909375 60198 1671.0 45457 23299
1979 1920549 58108 1573.0 42813 24447
1980 2099332 93421 2650.0 75625 62593
1981 1986851 60819 1821.0 42314 26996
1982 1992749 62648 1512.0 42316 31353
1983 2038997 67725 1618.0 43108 37398
1984 2111416 67557 1744.0 43773 43574
1985 2158031 67765 1733.0 44935 52979
1986 2185133 75925 1650.0 44205 55932
1987 2244893 84947 1629.0 42342 63641
1988 2326038 95378 1599.0 44206 69756
1989 2355183 97357 1896.0 44254 77219
1990 2563644 137253 4273.0 64070 141335
1991 2478953 111126 2315.0 43365 87276
1992 2574679 120371 2030.0 43563 96559
1993 2598043 124648 1978.0 45098 94051
1994 2679555 131128 1820.0 47979 98357
1995 2714127 140498 1679.0 50914 104985
1996 2783091 142283 1487.0 49633 103382
1997 2882238 144133 1464.0 48621 101450
1998 2953824 146726 1383.0 48227 103928
1999 2975080 160013 1415.0 51700 107002
2000 3192248 182605 2832.0 68063 173799
import time
import pandas as pd
import splinter
SLEEP_TIME = 5
br = splinter.Browser("phantomjs")
urls = {
'books': 'http://www.worldcat.org/search?q=kw%3A*&fq=+%28x0%3Abook-+OR+%28x0%3Abook+x4%3Adigital%29+OR+%28x0%3Abook+x4%3Amic%29+OR+%28x0%3Abook+x4%3Acontinuing%29+OR+%28x0%3Abook+x4%3Alargeprint%29+OR+%28x0%3Abook+x4%3Abraille%29%29+%3E++%28x0%3Abook-+OR+%28x0%3Abook+x4%3Adigital%29+OR+%28x0%3Abook+x4%3Amic%29+OR+%28x0%3Abook+x4%3Acontinuing%29+OR+%28x0%3Abook+x4%3Alargeprint%29+OR+%28x0%3Abook+x4%3Abraille%29+-%28%28x0%3Abook+x4%3Athsis%29%29%29+%3E+yr%3A{0}..{1}+%3E+&dblist=638&se=&sd=&fc=yr:_50&qt=show_more_yr%3A&cookie#x0%253Abook-format',
'newspapers': "http://www.worldcat.org/search?q=kw%3A*&fq=yr%3A{0}..{1}+%3E+%3E+x0%3Anews&dblist=638&fc=yr:_25&qt=show_more_yr%3A&cookie#x0%253Anews-format",
'music': "http://www.worldcat.org/search?q=kw%3A*&fq=+%28x0%3Amusic-+OR+%28x0%3Amusic+x4%3Alp%29+OR+%28x0%3Amusic+x4%3Acd%29+OR+%28x0%3Amusic+x4%3Acassette%29+OR+%28x0%3Amusic+x4%3Adigital%29%29+%3E++yr%3A{0}..{1}+%3E+&dblist=638&se=&sd=&fc=yr:_25&qt=show_more_yr%3A&cookie",
'scores': "http://www.worldcat.org/search?q=kw%3A*&fq=+%28x0%3Amsscr-+-%28%28x0%3Amsscr+x4%3Adigital%29%29%29+%3E+yr%3A{0}..{1}+%3E+&dblist=638&se=&sd=&fc=yr:_25&qt=show_more_yr%3A&cookie",
'videos': "http://www.worldcat.org/search?q=kw%3A*&fq=+%28x0%3Avideo-+OR+%28x0%3Avideo+x4%3Avhs%29+OR+%28x0%3Avideo+x4%3Advd%29+OR+%28x0%3Avideo+x4%3Adigital%29+OR+%28x0%3Avideo+x4%3Afilm%29%29+%3E+++yr%3A{0}..{1}+%3E+&dblist=638&se=&sd=&fc=yr:_25&qt=show_more_yr%3A&cookie",
}
medias = urls.keys()
series = {}
media_counts = {}
for media in medias:
print(media)
for year in range(1000, 2000, 25):
print("\t{0} - {1}".format(year + 1, year + 25))
br.visit(urls[media].format(year + 1, year + 25))
year_counts = br.find_by_css("#YearRefinement .refinement li")[1:-1]
for year_count in year_counts:
year, counts = year_count.text[:-1].split(" (")
media_counts[int(year)] = int(counts)
time.sleep(SLEEP_TIME)
series[media] = pd.Series(media_counts)
br.quit()
df = pd.DataFrame(series)
df.to_csv("/tmp/media_counts.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment