Skip to content

Instantly share code, notes, and snippets.

@ajbrock
Last active March 13, 2019 03:02
Show Gist options
  • Save ajbrock/38be48e3fdba4aef6ed6bf28f0d1814e to your computer and use it in GitHub Desktop.
Save ajbrock/38be48e3fdba4aef6ed6bf28f0d1814e to your computer and use it in GitHub Desktop.
x=["SyBPtQfAZ","H1S8UE-Rb","S1sRrN-CW","Syt0r4bRZ","HkPCrEZ0Z","rJ5C67-C-","H1T2hmZAb","Hymt27b0Z",
"HJ5AUm-CZ","r1nzLmWAb","HkGJUXb0-","SkERSm-0-","BJlrSmbAZ","HJXyS7bRb","SyhRVm-Rb","SkwAEQbAb",
"B1mvVm-C-","S1TgE7WR-","H1DkN7ZCZ","SJ71VXZAZ","ryk77mbRZ","HJIhGXWCZ","BJInMmWC-","H1I3M7Z0b",
"Bk-ofQZRb","SJx9GQb0-","BJoBfQ-0b","SJyVzQ-C-","HJNGGmZ0Z","H1kMMmb0-","HkGbzX-AW","rJIgf7bAZ",
"SyCyMm-0W","r1ayG7WRZ","H1Nyf7W0Z","HkCvZXbC-","ByED-X-0W","ByuI-mW0W","H1BHbmWCZ","SkqV-XZRZ",
"rk07ZXZRb","HJCXZQbAZ","H1bbbXZC-","rkaqxm-0b","S1XolQbRW","B1TYxm-0-","Bkftl7ZCW","SyBBgXWAZ",
"SkrHeXbCW","S1ANxQW0b","ByOExmWAb","By4Nxm-CW","r1l4eQW0Z","B12QlQWRW","ry831QWAb","B1EGg7ZCb",
"HyMTkQZAb","rJ6iJmWCW","rkZB1XbRZ","HJnQJXbC-","Sy3fJXbA-","HJ8W1Q-0Z","HknbyQbC-","BkrsAzWAb",
"ryH20GbRW","r1HhRfWRZ","B1KFAGWAZ","Byht0GbRZ","B1hYRMbCW","S1q_Cz-Cb","BJ7d0fW0b","HyydRMZC-",
"SyZI0GWCZ","rJSr0GZR-","ryZERzWCZ","rkeZRGbRW","ryazCMbR-","Hyig0zb0Z","H11lAfbCW","HkXWCMbRW",
"HJZ10MZAb","HyiRazbRb","rkYTTf-AZ","BkUp6GZRW","HkmaTz-0W","rJL6pz-CZ","B1bo6fbA-","ryacTMZRZ",
"H1-oTz-Cb","BkLhaGZRW","SyZipzbCb","H1U_af-0-","BJgVaG-Ab","S1NHaMW0b","B1CEaMbR-","HJg1NTGZRZ",
"Sk1NTfZAb","ry7m6fZRW","r1lfpfZAb","H1q-TM-AW","SkHl6MWC-","rymbTfWAW","B1ZZTfZAW","B1nxTzbRZ",
"B1bgpzZAZ","HJrJpzZRZ","rypT3fb0b","ryTp3f-0-","rkaT3zWCZ","rkrC3GbRW","BJ6anzb0Z","rJl63fZRb",
"BJ8c3f-0b","r1Zi2Mb0-","ByqFhGZCW","rkc_hGb0Z","r1uOhfb0W","SyqShMZRb","ryOG3fWCW","ryUlhzWCZ",
"r1QZ3zbAZ","HyzbhfWRW","HyFaiGbCW","rJNpifWAb","SySisz-CW","SyfiiMZA-","rkmoiMbCb","r1NYjfbR-",
"Sk7KsfW0-","Sy-tszZRZ","B16_iGWCW","SyVOjfbRb","SkaPsfZ0W","rJBwoM-Cb","SkHDoG-Cb","By-IifZRW",
"rJB8sM-C-","S1gWUifW0b","BJZUsf-RZ","BJSUiGbA-","ryZ8sz-Ab","SyProzZAW","H1l8sz-AW","rkTBjG-AZ",
"By4HsfWAZ","rJfHoM-C-","SJQHjzZ0-","H13WofbAb","S1cZsf-RW","H1LAqMbRW","SyxCqGbRZ","BJj6qGbRW",
"HkinqfbAb","B1jscMbAW","HJYoqzbC-","H1BO9M-0Z","SJTB5GZCb","BJDH5M-AW","r1CE9GWR-","B1RQ9MbAZ",
"ryRmqzbA-","BJhxcGZCW","HyY0Ff-AZ","HkepKG-Rb","BJQRKzbA-","rJTutzbA-","SJaDKGW0Z","HkTEFfZRb",
"rJg4YGWRb","rkcQFMZRb","BkXmYfbAZ","S17mtzbRb","S1pWFzbAW","Hyp-KG-0-","Syg-YfWCW","S191YzbRZ",
"rk9kKMZ0-","H15RufWAW","BkisuzWRW","SJCq_fZ0Z","H135uzZ0-","Hk3ddfWRW","r1lUOzWCW","HktXuGb0-",
"SJUX_MWCZ","By-7dz-AZ","ryHM_fbA-","HklZOfW0W","ry80wMW0W","SJlhPMWAW","BkpiPMbA-","HkpYwMZRb",
"ry8dvM-R-","S1Euwz-Rb","rkfOvGbCW","SygwwGbRW","Sy8XvGb0-","ry_WPG-A-","SJdCUMZAW","BJypUGZ0Z",
"ryj38zWRb","rJGY8GbR-","ByL48G-AW","B1DmUzWAW","rye7IMbAZ","ryCM8zWRb","SJPpHzW0-","HJC2SzZCW",
"S1sqHMZCb","HJY9Sf-0b","SkJKHMW0Z","SJ3dBGZ0Z","HJUOHGWRb","rJzIBfZAb","ByxLBMZCb","SkhQHMW0W",
"BJuWrGW0Z","HkwZSG-CZ","Hk91SGWR-","rkKkSzb0b","H1uR4GZRZ","r1saNM-RW","HJBhEMbRb","BJehNfW0-",
"HJGcNz-0W","Bys_NzbC-","HkwBEMWCZ","Bki4EfWCb","S1FQEfZA-","Sktm4zWRb","rJm7VfZA-","Byd-EfWCb",
"SyuWNMZ0W","H1WgVz-AZ","SJDJNzWAZ","B1X0mzZCW","H1a37GWCZ","Bk6qQGWRb","r1vuQG-CW","B1NOXfWR-",
"ryQu7f-RZ","Sy-dQG-Rb","S1GDXzb0b","SJiHXGWAZ","BybQ7zWCb","SJ1Xmf-Rb","H1kG7GZAW","r1Dx7fbCW",
"SJLlmG-AZ","BkQCGzZ0-","SJZ2Mf-0-","rJYFzMZC-","rkEtzzWAb","H18uzzWAZ","Bya8fGWAZ","BydLzGb0Z",
"H1u8fMW0b","HJWLfGWRb","HJcSzz-CZ","BkfEzz-0-","B1CQGfZ0b","HkfXMz-Ab","BJk7Gf-CZ","B1EA-M-0Z",
"Syx6bz-Ab","SyunbfbAb","r1YqWz-R-","B1Lc-Gb0Z","BJJ9bz-0-","SJvu-GW0b","Skz_WfbCZ","B14TlG-RW",
"HyRnez-RW","SJ9nefbRW","B1e5ef-C-","Skx5txzb0W","Hk-FlMbAZ","SktLlGbRZ","r1ISxGZRb","BkUHlMZ0b",
"ryZElGZ0Z","SJA7xfb0b","BkA7gfZAb","B1i7ezW0-","B18WgG-CZ","rJwelMbR-","S1p31z-Ab","rJl3yM-Ab",
"HJsjkMb0Z","Hk__kGbCW","B14uJzW0b","HymuJz-A-","HkULkfZAb","r16Vyf-0-","rJr4kfWCb","r1cXkf-A-",
"H1bM1fZCW","B1KJJf-R-","SknC0bW0-","ryRh0bb0Z","rJssAZ-0-","SyrYCWWRW","rk6H0ZbRb","HyXNCZbCZ",
"SJFM0ZWCb","r1pW0WZAW","S1HlA-ZAZ","SJIA6ZWC-","H1mCp-ZRZ","H1K6Tb-AZ","SySpa-Z0Z","H113pWZRb",
"rJHcpW-CW","r1drp-WCZ","r17Q6WWA-","SJgf6Z-0W","SJme6-ZR-","SyQy6ZbCZ","S1CChZ-CZ","r15AnW-0Z",
"Skw0n-W0Z","rJma2bZCW","HJJ23bW0b","Hksj2WWAW","SJJinbWRZ","S1XGhbW0Z","r1Oen--RW","S1WRibb0Z",
"BkM3ibZRW","BkJ3ibb0-","HyZoi-WRb","H1tSsb-AW","Bys4ob-Rb","ByJ7obb0b","S1xzob-0W","HyBbjW-RW",
"Bkj1sW-Ab","r1TA9ZbA-","HJsk5-Z0W","SyKoKWbC-","S1fcY-Z0-","rJe7FW-Cb","H15odZ-C-","SyL9u-WA-",
"S1vuO-bCW","BkwHObbRZ","S18Su--CW","rJVruWZRW","BkCV_W-AZ","HJWGdbbCW","Bkl1uWb0Z","SyvCD-b0W",
"Hyg0vbWC-","HJJ0w--0W","S1Auv-WRZ","Bk7wvW-C-","B1X4DWWRb","BJubPWZRW","ryup8-WCW","ryBnUWb0b",
"S1FFLWWCZ","B1suU-bAW","rkgOLb-0W","HJYQLb-RW","ry018WZAZ","SJ60SbW0b","Sk7cHb-C-","ByquB-WC-",
"B1kIr-WRb","BJJLHbb0-","By3VrbbAb","ryserbZR-","SJJySbbAZ","Byj54-bAW","rkQu4Wb0Z","SJJQVZW0b",
"HkCnm-bAb","HyEi7bWR-","HkGcX--0-","rJv4XWZA-","rJvJXZb0W","HJ4YGZ-AW","HJXOfZ-AZ","BJRxfZbAW",
"SJzRZ-WCZ","ry-TW-WAb","B1Z3W-b0W","BkVsWbbAW","B1hcZZ-AW","HypNZW-Rb","ryDNZZZAW","rkHVZWZAZ",
"SyAbZb-0Z","H1Dy---0Z","HkZy-bW0-","HkcTe-bR-","ryG6xZ-RZ","HyH9lbZAW","BJluxbWC-","HJIoJWZCZ",
"rkMt1bWAZ","HJaDJZ-0W","HJGv1Z-AW","HJRV1ZZAW","B1oOAeb0b","SyJ7ClWCb","S1EzRgb0W","Sy1f0e-R-",
"HyaeReWCZ","rJLTTe-0W","HyunpgbR-","rkDj6gW0-","Hkc-TeZ0W","Hy_o3x-0b","HJ4IhxZAb","rkWN3g-AZ",
"ryPW2e-A-","rywDjg-RW","H1BLjgZCb","S14EogZAZ","r1VVsebAZ","rkw-jlb0W","ByQZjx-0-","H1xJjlbAZ",
"rJbs5gbRW","H1wt9x-RW","Hkbd5xZRb","rytstxWAW","SkT5Yg-RZ","HkJDFeW0W","ryDUFeWRW","HJ1HFlZAb",
"r17lFgZ0Z","B1O3OgbRW","S1Ow_e-Rb","r154_g-Rb","ry0WOxbRZ","SyqAPeWAZ","rJrTwxbCb","HyxjwgbRZ",
"H1cKvl-Rb","HytSvlWRZ","r1kNDlbCb","rkEfPeZRb","Hk6kPgZA-","rkHywl-A-","SyX0IeWAW","rkN2Il-RZ",
"HymYLebCb","rkTS8lZAb","HyWrIgW0W","ByKWUeWA-","Sk0pHeZAW","ByUsSgb0-","H1VjBebR-","B1J_rgWRW",
"Hk0wHx-RW","rkZvSe-RZ","H1sUHgb0Z","rJoXrxZAZ","SJyfrl-0b","HkJ1rgbCb","By0ANxbRW","H1srNebAZ",
"BJE-4xW0W","ryykVe-0W","HyDAQl-AW","SJICXeWAb","BygpQlbA-","ByOnmlWC-","H1uP7ebAW","S1fHmlbCW",
"H1-nGgWC-","rk49Mg-CW","HyIFzx-0b","rJUYGxbCW","rkRwGg-0Z","rkPLzgZAZ","rk8rMgZAW","rylSzl-R-",
"HyrCWeWCb","H1rRWl-Cb","Hy1d-ebAb","HJMN-xWC-","Hki-ZlbA-","Sy2ogebAW","SkmiegW0b","HJjvxl-Cb",
"HJLPel-CW","SysEexbRb","ByUEelW0-","Hk5elxbRW","SyUkxxZ0b","rJR2ylbRb","Sk2u1g-0-","BJ8vJebC-",
"B1nLkl-0Z","S1EfylZ0Z","B1ae1lZRb","rkLyJl-0-","HydnA1WCb","By9iRkWA-","HJZiRkZC-","Sy5OAyZC-",
"S1tWRJ-R-","rkrWCJWAW","rkYgAJWCZ","SkZxCk-0Z","SJ-C6JbRW","rkmtTJZCb","r1Ddp1-Rb","HyiS6k-CW",
"B1p461b0W","rJJzTyWCZ","SyYe6k-CW","B1zlp1bRW","rkcya1ZAW","H1mp21ZCZ","ByQpn1ZA-","SJcKhk-Ab",
"BkoXnkWAb","HkL7n1-0b","Byt3oJ-0W","S1viikbCW","rJQDjk-0b","HyjC5yWCW","SJahqJZAW","BJk59JZ0b",
"By3v9k-RZ","ry5wc1bCW","BkDB51WR-","B1D6ty-A-","ryepFJbA-","BJ0hF1Z0b","SkBYYyZRZ","r1ZdKJ-0W",
"rk8wKk-R-","B1EPYJ-C-","r1wEFyWCW","H1DJFybC-","HyiAuyb0b","HkUR_y-RZ","rk8R_JWRW","BkeC_J-R-",
"BJjquybCW","SyzKd1bCW","SkJd_y-Cb","HJewuJWCZ","H1aIuk-RW","H1OQukZ0-","rkGZuJb0b","rJ1RPJWAW",
"SyjjD1WRb","ByuP8yZRb","S1EwLkW0W","rJ8rHkWRb","rJUBryZ0W","SkBHr1WRW","Byk4My-RZ","BJB7fkWR-",
"HyHmGyZCZ","S1J2ZyZ0Z","BJ78bJZCZ","S1szZkb0b","Bk9zbyZCZ","rJlMAAeC-","Syjha0gAZ","H1dh6Ax0Z",
"H1AdTAxC-","ByhthReRb","HJ3d2Ax0-","r1vccClCb","BkQqq0gRb","HkxF5RgC-","ry4S90l0b","Bk8ZcAxR-",
"rk98KCgRW","ByeqORgAW","S1fduCl0b","SJSVuReCZ","r1RQdCg0W","HyPpD0g0Z","HkanP0lRW","BkrSv0lA-",
"r1HNP0eCW","BJgd7m0xRZ","HyDMX0l0Z","Hk99zCeAb","SkFqf0lAZ","HJhIM0xAW","HJw8fAgA-","rkONG0xAW",
"SkymMAxAb","Sy3XxCx0Z","SySaJ0xCZ","r1hsJCe0Z","BkVf1AeAZ","HyNyyCxA-","SJzMATlAZ","rkpoTaxA-",
"B1ZvaaeAZ","H1Ww66x0-","Syhr6pxCW","SyPMT6gAb","rk3pnae0b","ryb83alCZ","rJaE2alRW","Hk6WhagRW",
"Bk_fs6gA-","Hko85plCW","S1XXq6lRW","rJGZq6g0-","Skj8Kag0Z","rJhR_pxCZ","ByJHuTgA-","HJoYD6gC-",
"S1Dh8Tg0-","ByzvHagA-","BJOFETxR-","ry4SNTe0-","H1NV4agCb","ByS1VpgRZ","HkCsm6lRb","H1vEXaxA-",
"BJcAWaeCW","SkFAWax0-","HyyP33gAZ","H1Y8hhg0b","Hyp3i2xRb","S1Q79heRW","rJWechg0Z","By5SY2gA-",
"Sy_MK3lAZ","Hkp3uhxCW","rJBiunlAW","Skdvd2xAZ","ryiAv2xAZ","ryZ283gAZ","SkfNU2e0Z","BkN_r2lR-",
"HJPSN3gRW","S1v4N2l0-","S1LXVnxRb","SyVVXngRW","BkS3fnl0W","rk4Fz2e0b","Sy4c-3xRW","SkxqZngC-",
"BJDEbngCZ","ByBAl2eAZ","H1eJxngCW","HJvvRoe0W","SkAK2jg0b","SJxE3jlA-","HkNGsseC-","Hy7fDog0b",
"rkfbLilAb","r1iuQjxCZ","B1al7jg0b","SyW4Gjg0W","H1cWzoxA-","rkxY-sl0W","SkHkeixAW","BkIkkseAZ",
"rJa90ceAb","S19dR9x0b","SJtChcgAW","SJw03ceRW","r1q7n9gAb","rk3b2qxCW","BJvWjcgAZ","SJVHY9lCb",
"rJWrK9lAb","HJNMYceCW","Sk9yuql0Z","SyjsLqxR-","r1SnX5xCb","BJy0fcgRZ","H1MczcgR-","BJQPG5lR-",
"HkbmWqxCZ","BkoCeqgR-","r1nmx5l0W","B1CNpYg0-","HJDUjKeA-","HkwrqtlR-","HyXBcYg0b","HJDV5YxCW",
"r1YUtYx0-","BkPrDFgR-","HkpRBFxRb","B1l8BtlCb","HyDu7FgAW","SJ1fQYlCZ","BJRZzFlRb","SybqeKgA-",
"Hy8hkYeRb","BydjJte0-","r1HKJYeRb","rJTGkKxAZ","SyrGJYlRZ","HyKZyYlRZ","SkOb1Fl0Z","B1IDRdeCW",
"B17JTOe0-","SksY3deAW","ryA-jdlA-","S1PWi_lC-","BJIgi_eCZ","S1jBcueAb","Hk9Xc_lR-","H18WqugAb",
"BJaU__eCZ","S1Y7OOlRZ","SyYYPdg0-","HyUNwulC-","SkBcLugC-","B1uvH_gC-","HkMvEOlAb","H1vCXOe0b",
"H139Q_gAW","SkVqXOxCb","SJi9WOeRb","BkUDW_lCb","SyJS-OgR-","BJgPCveAW","H1sSRDeCZ","H1YynweCb",
"rJ695PxRW","HyowcvgAZ","ryvxcPeAb","rJ33wwxRb","BJaKwvg0Z","HJjePwx0-","rkr1UDeC-","SJOl4DlCZ",
"r1kP7vlRb","S1D8MPxA-","HyN-ZvlC-","SJDYgPgCZ","B1mAkPxCZ","B1nZ1weCZ","ByJbJwxCW","H1meywxRW",
"ByJDAIe0b","rkKsaLlR-","B1Gi6LeRZ","B1NGT8xCZ","Sy0GnUxCb","SkYMnLxRW","SJn0sLgRb","ry1arUgCW",
"BJLmN8xRW","BkM27IxR-","B1mSWUxR-","rkhlb8lCZ","HktRlUlAZ","SJ19eUg0-","H1VGkIxRZ","H1bhRHeA-",
"Hyz66BxCW","rknt2Be0-","r11Q2SlRW","SJa9iHgAZ","BJxkoBeRW","H1vrqSxAb","rybDdHe0Z","SJiHOSeR-",
"SJLy_SxC-","Hy3MvSlRW","ByCPHrgCW","HktK4BeCZ","SyXNErg0W","Skp1ESxRZ","ryJYmreCZ","SJ1nzBeA-",
"ByOoMSgRW","SkFEGHx0Z","SkYibHlRb","SyOK1Sg0W","B1Yy1BxCZ","r1RF3ExCb","rylejExC-","BJNRFNlRW",
"rJIN_4lA-","rJv8PEgAZ","rJ7RBNe0-","BJ4prNx0W","SyELrEeAb","H1UOm4gA-","r1AoGNlC-","HJVYMNeAW",
"BywyFQlAW","BkeqO7x0-","SkF2D7g0b","Hk2aImxAb","HkAClQgA-","H1zriGeCZ","rk6qdGgCZ","S16FPMgRZ",
"S1nQvfgA-","ByaQIGg0-","HJOQ7MgAW","rybAWfx0b","BJMuY-gRW","rkZzY-lCb","SJaP_-xAb","Hk8XMWgRb",
"HkMCybx0-","r1h2DllAW","B1n8LexRZ","HyTrSegCb","ByOfBggRZ","HkeJVllRW","r1cLblgCZ","S1GUgxgCW",
"ByW5yxgA-","ByrZyglCb","S1uxsye0Z","r1gs9JgRZ","ry8lF1xAZ","BJij4yg0Z","SJmAXkgCb","SJky6Ry0W",
"HJ_aoCyRZ","ryZ3KCy0W","r1DPFCyA-","BkgYL010b","SJd0EAy0b","SkFvV0yC-","BJ_wN01C-","rkQsMCJCb",
"BJvVbCJCb","ByJWeR1AW","rJ3fy0k0Z","HyyS06JCW","r1Kr3TyAb","H1DGha1CZ","SyGT_6yCZ","rkO3uTkAZ",
"Hy6GHpkCW","HJcjQTJ0W","ryY4RhkCZ","H1Xw62kRZ","S1m6h21Cb","Syl3_2JCZ","Hy7EPh10W","SyoDInJ0-",
"SkZ-BnyCW","rkQkBnJAb","HJzgZ3JCW","rybEe2JAZ","HkuGJ3kCb","rJXMpikCZ","SJu63o10b","B13njo1R-",
"rkvDssyRb","SJ2ZjsyC-","Sk03Yi10Z","r1SuFjkRW","SyhcXjy0Z","ByZmGjkA-","H1Yp-j1Cb","By5ugjyCb",
"B1tExikAW","Sy21R9JAW","ByWBpcJAZ","BJGWO9k0Z","Sk6fD5yCb","SJyEH91A-","HypkN9yRW","B16yEqkCZ",
"Syr8Qc1CW","HktJec1RZ","Bki1Ct1AW","HkbJTYyAb","Bk4ELt10Z","S1680_1Rb","Bk346Ok0W","B12Js_yRb",
"r1tJKuyRZ","rywHCPkAW","rJqfKPJ0Z","S1DWPP1A-","SywXXwJAb","BJ_QxP1AZ","SylJ1D1C-","Bym0cU1CZ",
"SJQO7UJCW","rytNfI1AZ","BkiIkBJ0b","SJZsR7kCZ","HkwVAXyCW","Skvd-myR-","rJiaRbk0-","BJ_UL-k0b",
"SkPoRg10b","HJSA_e1AW","B1lMMx1CW","rJk51gJRb","H1EHcyJC-","SJa1Nk10b","HJdXGy1RW","Hyp-JJJRW",
"Sk4w0A0Tb","SkYXvCR6W","r1kj4ACp-","rk1FQA0pW","BySRH6CpW","SJD8YjCpW","HyI5ro0pW","SkNQeiRpb",
"S1lN69AT-","HJ94fqApW","rk3mjYRp-","r111KtCp-","rkdU7tCaZ","ryALZdAT-","SyyGPP0TZ","ryzm6BATZ",
"S1xDcSR6W","SkRsFSRpb","SJwZUHRTZ","HyI6s40a-","SkA-IE06W","HklpCzC6-","H1O0KGC6b","B1twdMCab",
"rkmu5b0a-","ryjw_eAaZ","H1JbgxApZ","HkOhuyA6-","ByYPLJA6W","Sy33KapTb","rJFOptp6Z","ry6-G_66b",
"S1JHhv6TW","SJCPLLpaW","B1tC-LT6W","HyfHgI6aW","Hkn7CBaTW","SyF7Erp6W","HJtEm4p6Z","ryF-cQ6T-",
"HyRVBzap-","B1ydPgTpW","BkSDMA36Z","S1_6Tana-","Hkfmn5n6W","SywP-9hT-","HkgNdt26Z","ByJIWUnpW",
"B1gJ1L2aW","HylgYB3pZ","rJ4uaX2aW","HJr4QJ26W","r1BRfhiab","HJ39YKiTb","B1QgVti6Z","HJGXzmspb",
"HkjL6MiTb","B1QRgziT-","BJInEZsTb","BJjBnN9a-","SJzmJEq6W","Skk3Jm96W","B1EVwkqTW","r1AMITFaW",
"rkhxwltab","B13EC5u6W","HJqUtdOaZ","SyMvJrdaW","ry9tUX_6-","SkmM6M_pW","HJ_X8GupW","ry9yolu6W",
"SJ8M9yup-","rJ7yZ2P6-","ByRWCqvT-","H1pri9vTZ","SJvrXqvaZ","ryBfxWPp-","SkffVjUaW","B1spAqUp-",
"HkMhoDITb","BkpXqwUTZ","r15kjpHa-","r1dHXnH6-","r1kjEuHpZ","rkA1f3NpZ","rkhCSO4T-","SkiCjzNTZ",
"BkabRiQpb","ryj0790hb","ryH_bShhW","H196sainb","H1A5ztj3b","S1347ot3b","Hk2MHt-3-","rk6cfpRjZ",
"rydeCEhs-","rkNzJ4m0-"]
import requests
import os, sys
from tqdm import tqdm
import time
import PyPDF2
data = ''
def dl(url_request):
return requests.get(url_request)
base = "https://openreview.net/pdf?id="
for i,s in tqdm(enumerate(x)):
# Manually skip some
if i in [11,157]:
print('Manually skipping pdf #%i...'%i)
continue
try:
r = dl(base+s)
except:
print('Failed to download pdf #%i...'%i)
continue
# print("Timed out!")
# except:
# print('Failed to download pdf #%i'%i)
try:
with open('tmp.pdf', 'wb') as f:
f.write(r.content)
tmpdata= ''.encode(sys.stdout.encoding, errors='replace')
except:
print('Failed to write pdf #%i...'%i)
continue
try:
with open('tmp.pdf', 'rb') as f:
pdfr = PyPDF2.PdfFileReader(f)
num_pages = pdfr.getNumPages()
for page_num in range(num_pages):
page = pdfr.getPage(page_num)
tmpdata += page.extractText().encode(sys.stdout.encoding, errors='replace')
except:
print('Failed to read pdf #%i...'%i)
continue
try:
with open('out.txt','ab') as myoutfile:
myoutfile.write(tmpdata)
except:
print('Failed to write data from pdf #%i...'%i)
continue
@xhxia
Copy link

xhxia commented Apr 13, 2018

It is a good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment