By Alvin Alexander. Last updated: June 6, 2016
The following Python example shows how to split a string into a list, get the second element from the list (which happens to be a long), and convert that string to a long value:
line = 'Foo bar baz|1234567890' ts = line.split('|', 1)[1] t = long(ts)
I needed to do this for my Radio Pi project, and this code worked out well.