Closed hacksburg-john closed 1 year ago
I've rejiggered the regex so that the price
capture group is None
when the Price field is absent. Am I correct in thinking you'll handle rendering of None
s and prices of 0 or less in the caller?
See https://regex101.com/r/HLCFll for sample strings and testing
The rss_to_json script uses a regex query to extract event info from meetup rss strings: https://github.com/Hacksburg/hacksburg.github.io/blob/master/rss_to_json.ipynb?short_path=6c08775#L41
If the rss string is missing a "Price: " field (which is common for free events) the regex doesn't match and the script fails to run. It can be temporarily bypassed by adding a fake price field to the RSS.
Example string with price:
Example string without price: