首先要安装pylast库。
$ easy_install pylast
然后填写里面的用户名密码即可~
| #!/usr/bin/python | |
| #coding=UTF-8 | |
| '''Fanfou Hualao Bash''' | |
| import sys | |
| from os import system | |
| AT = None | |
| TOPIC = None | |
| def Send_Message(msg): |
| server { | |
| listen 80; | |
| server_name XXXX; | |
| location / { | |
| proxy_redirect off; | |
| proxy_set_header Host "spreadsheets.google.com"; | |
| proxy_pass http://spreadsheets.google.com; | |
| proxy_set_header x-real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| gcci () { | |
| if [ "$#" -eq "0" ] | |
| then | |
| return | |
| fi | |
| cname=$(echo "$1.c") | |
| gcc -Wall -g $cname -o $1 && time ./$1 | |
| } | |
| new () { |
| 901a902,940 | |
| > | |
| > kaomojiData= | |
| > { | |
| > "<( ̄︶ ̄)>", | |
| > "╮(╯▽╰)╭", | |
| > "(→_→)", | |
| > "Σ( ° △ °|||)︴", | |
| > "(>﹏<)", | |
| > "( ̄▽ ̄)~*", |
| server | |
| { | |
| listen 80; | |
| server_name fourws.fanhe.org; | |
| location / | |
| { | |
| proxy_pass http://fanfou-sender.appspot.com; | |
| proxy_set_header Host "fanfou-sender.appspot.com"; | |
| proxy_set_header X-Real-IP $remote_addr; |
| [fanzeyi@localhost TRPG]$ python blood.py | |
| Status Maker Version 0.1 alpha | |
| Copyright (C) 2011 fanhe.org | |
| Status > people Zeray 30 | |
| Status > print | |
| +----------------------------+ | |
| | Status | | |
| +----------------------------+ | |
| | Zeray | |
| #!/usr/bin/python | |
| import urllib2_file | |
| import urllib2 | |
| import sys | |
| path = sys.argv[1] | |
| text = "".join(sys.argv[2:]) | |
| data = {} | |
| data['email'] = 'username@gmail.com' | |
| data['password'] = 'password' |
| # -*- coding: utf-8 -*- | |
| import web | |
| from urls import urls | |
| from render import render | |
| web.config.debug = True | |
| app = web.application(urls, globals()) |
V2EX > Setting
My CSS:
@import url('https://raw.github.com/gist/1146732/v2ex_dark.css');