catch ConnectionError exception
add basic logging
use requests status_code rather than numbers
uppercase global variables
small updates
reorganize the codes
minor changes
rename datetime_parser to event_parser
check range of timespan and maxspan