FarideAplanet Progress Report

xiaoxiao2021-03-06  54

Recently, this is busy. It is not busy, even let the end of the world think that I have exchanged the department. I looked at the end of the world 4, and I have fallen to the second one, it is really sweat. Today, I have been posted on something that I have been doing before, and I will see the progress to the OFU. I have always planned to make a RSS portal for Faridea, used to combine each member's blog, so that there is a unified entry, and even extract BBS information, this thing should look like, there is not too big at the time. The outline, so it has come once again. After this topic related pictures, you find that this form is ready to use, this form is called Planet: http://www.planetplanet.org/, but it has decided to develop itself, and that the effect is not more than Planet. Bore :) The key technology used this time is only one, which is Python's RSS library FeedParser and Pyrss2gen, which reduces a lot of workload. To resolve a RSS only:

D = feedParser.Parse (URL) Generates an RSS only:

RSS = pyrss2gen.rss2 (title = "faridea rss", link = "http://www.faridea.com"; description = "Web Design Designer Flash CG", LastBuilddate = DateTime.Datetime.now (), items = RSS_Items, Generator = "Powerd by Python", DOCS = "http://www.faridea.com/bbs";) Of course, the above is only sample code. At present, the code has been written, you can successfully analyze the RSS and generate your own RSS. The current interface has been designed. The effect is as follows: This topic is currently in the XHTML standard production, because many bursts, shelves For a while, I have recently grasped and complete it as soon as possible.

转载请注明原文地址:https://www.9cbs.com/read-40647.html

New Post(0)