parameters: (n=1000, lang="en")
docstring: Helper for populating Community page Schedule spreadsheet.
    Prints a date and the name of upcoming parashah, to be coped into the spreadsheet.
    Prints multiple rows when Israel/Disapora readings differ.
docstring_summary: Helper for populating Community page Schedule spreadsheet.
    Prints a date and the name of upcoming parashah, to be coped into the spreadsheet.
    Prints multiple rows when Israel/Disapora readings differ.
docstring_tokens: Helper for populating Community page Schedule spreadsheet . Prints a date and the name of upcoming parashah to be coped into the spreadsheet . Prints multiple rows when Israel / Disapora readings differ .
function: def print_parashah_rows(n=1000, lang="en"):
    """
    Helper for populating Community page Schedule spreadsheet.
    Prints a date and the name of upcoming parashah, to be coped into the spreadsheet.
    Prints multiple rows when Israel/Disapora readings differ.
    """
  
    d = datetime.now()
  
    for i in range(n):
      d = d + timedelta(days=1)
      p_diaspora = get_parasha(d, diaspora=True)
      p_israel = get_parasha(d, diaspora=False)
  
      rows = [p_diaspora["parasha"]]
      if p_diaspora["parasha"] != p_israel["parasha"]:
        rows.append(p_israel["parasha"])
  
      for row in rows:
        print("{}, {}".format(d.strftime("%-m/%-d/%y"), row))
function_tokens: def print_parashah_rows ( n = 1000 , lang = "en" ) : d = datetime . now ( ) for i in range ( n ) : d = d + timedelta ( days = 1 ) p_diaspora = get_parasha ( d , diaspora = True ) p_israel = get_parasha ( d , diaspora = False ) rows = [ p_diaspora [ "parasha" ] ] if p_diaspora [ "parasha" ] != p_israel [ "parasha" ] : rows . append ( p_israel [ "parasha" ] ) for row in rows : print ( "{}, {}" . format ( d . strftime ( "%-m/%-d/%y" ) , row ) )