Skip to content

Instantly share code, notes, and snippets.

View strong-code's full-sized avatar

Colin strong-code

  • California
View GitHub Profile
dates = [x.get_text() for x in soup.find_all('dc:date')]
unixDates = []
for d in dates:
unixDates.append(int(time.mktime(time.strptime(d[:19], '%Y-%m-%dT%H:%M:%S'))))#format into UNIX time from DateTime-GMT format