This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns libnico.core | |
(:gen-class) | |
(:require [net.cgrand.enlive-html :as html] | |
[clojure.java.io :as io]) | |
(:import java.io.ByteArrayInputStream) | |
) | |
(def elements [ | |
:video_id | |
:title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import cgi | |
import os, sys, shutil | |
import urllib2, re, random | |
HTML="""<html xmlns="http://www.w3.org/1999/xhtml" lang="ja-JP" xml:lang="ja-JP"> | |
<head> | |
<title>pagenum</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |