;;; drivein.el
;;
;; This is free software
(require 'http-get)
(defun tv-get-drive-in-schedule (year month day)
(interactive (list (read-from-minibuffer "Year: " (format-time-string "%Y"))
(read-from-minibuffer "Month: " (format-time-string "%m"))
(read-from-minibuffer "Day:" (format-time-string "%d"))))
(let ((buf "*drive-in*")
(url (concat "http://www.driveinclassics.ca/listings.asp?date="
(or month (format-time-string "%m"))
"-"
(or day (format-time-string "%d"))
"-"
(or year (format-time-string "%Y")))))
(http-get url nil nil nil buf nil)
(sit-for 15)
(switch-to-buffer buf)
(goto-char (point-min))
(re-search-forward "")
(delete-region 1 (point))
(re-search-forward "")
(delete-region 1 (point))
(re-search-forward "")
(delete-region (point) (point-max))
(perform-replace "
" "\n" nil nil nil nil nil (point-min)(point-max))
(goto-char (point-min))
(perform-replace "