Daily Archive for May 9th, 2007

Last.fm on Ubuntulinux (dapper and high version)

今天下班回来编译了QT4,太长了,用了2个多小时 ;( 编译完全后大小,居然有364M。搞这个完全是为了学习用。

接下来安装了 Last.fm ,一个很好的听歌的(我也比较庸俗)工具,ubuntu/debian的版本在这里下载得到。使用Last.fm的朋友加我为好友吧,我的ID是 id_sonic;)

Last.fm on ubuntulinux

Share

Python Script download images

从scanlover的forum 上下载图片的python脚本,没有完善,临时需要写了一个。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os,sys,urllib2,cookielib,urllib

cj = cookielib.MozillaCookieJar()
cj.load(os.path.join("C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\lz366at6.default", "cookies.txt"))
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))

i = 613605
while i<613650:
  id = str(i)
  fileurl = opener.open("http://forum.scanlover.com/attachment.php?attachmentid="+id).read()
  f = open("Leah_Dizon_"+id+".jpg", "wb")
  f.write(fileurl)
  f.close()
  i += 1
else:
  print "end download"

最新版本请看这里.关于scanlover在大陆的所有访问方法,有知道的朋友给我留言 ;)

Share

links for 2007-05-09

Share