阻止202.105.165.218方法记录,电信劫持

在本机的网卡上添加IP地址:202.105.165.218,掩码为: 255.255.255.252参考的网址:  http://bbs.oncity.cc/b/221/1106397.html[img]http://image.lpfrx.com:81/mypic/20080812/202_105_165_218.jpg[/img]

Python读Rss

突然想写个Python读Rss的程序看看。

代码
———————————————————-
#!d:\Python24\python.exe
#-*- encoding: gb2312 -*-
import os, sys, string
import feedparser

furl=’http://www.gjjblog.com/feed.php’

#模拟浏览器
feedparser.USER_AGENT = “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)”

try:
  d = feedparser.parse(furl)
  s= d.encoding

  print d.feed.title.encode(s)
  
  j=len(d['items'])

  print j
  
  for r in range(j):
    e=d['items'][r]
    xtitle=e['title']
    print e['link']
    print e['description']
    
    

except Exception, e:
  print “错误 => “+str(e)

凡高专业车载汽车音响,支持MP3/USB/SD/AUX直接播放,原厂保修

帮朋友卖卖产品先:

产品型号:FG-101(银色),共分银色,黑色两种款式,有12伏和24伏两个电压规格