crc32 hash generation
codywu last edited by codywu
hi all, i'm pretty much completely new to python and am trying to create a simple extension for use in ulysses.
basically i want to take a clipboard input in this format:
Hamlin, S. A., Henry, T. S., Little, B. P., Lerakis, S., & Stillman, A. E. (2014). Mapping the Future of Cardiac MR Imaging: Case-based Review of T1 and T2 Mapping Techniques. RadioGraphics, 34(6), 1594–1611. http://doi.org/10.1148/rg.346140030
and turn it into:
where XX is a crc32 hash generated from the latter part of the url at the end (ie. "10.1148/rg.346140030") according to this:
i can do the last name and year parsing quite easily but i'm not sure how to approach the hash generation. can anyone provide assistance?
ccc last edited by ccc
zlib.crc32()are both available in Pythonista.