I'm trying to generate some predictable URL's for a crawler.
I have a set of base urls:
base_urls = ['http://something.com/john',
'http://something.com/sally']
and each one has a unique url for their daily calendar:
to_append = ['-mon-calendar',
'-tues-calendar',
'-wed-calendar',
'-thurs-calendar',
'-fri-calendar']
I need to generate a new array containing a complete list of the all people's weekly calendars (e.g. 'http://something.com/john-mon-calendar',...
I could iterate through this the long way but assume it's possible to do it more efficiently with map(). I haven't used map much and doing it with two iterables is throwing me off. Could anyone point me in the right direction?